ci-pipeline-generator
Generator สำหรับสร้าง CI/CD pipeline configs (GitHub Actions, GitLab CI) พร้อม testing, linting, building และ deployment
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
CI Pipeline Generator
Overview
สร้าง CI/CD pipeline configuration อัตโนมัติสำหรับ GitHub Actions, GitLab CI, หรือ Jenkins
Why This Matters
- Speed: Pipeline พร้อมใช้ใน 1 นาที
- Best practices: Testing, linting, security scans
- Consistency: Same pipeline ทุก project
- Complete: Build, test, deploy ครบ
Quick Start
# Generate GitHub Actions pipeline
npx generate-ci --platform github
# Output:
.github/workflows/
├── ci.yml # PR checks
├── deploy.yml # Deployment
└── release.yml # Release automation
Generated Pipeline
GitHub Actions
# .github/workflows/ci.yml
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Test
run: npm test
- name: Build
run: npm run build
- name: Upload coverage
uses: codecov/codecov-action@v3
Deployment Pipeline
# .github/workflows/deploy.yml
name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Docker image
run: docker build -t myapp:${{ github.sha }} .
- name: Push to registry
run: docker push myapp:${{ github.sha }}
- name: Deploy to production
run: kubectl set image deployment/myapp myapp=myapp:${{ github.sha }}
Features
Auto-generated Stages
1. Lint (ESLint, Prettier)
2. Test (Jest, coverage)
3. Security scan (npm audit)
4. Build (Docker)
5. Deploy (Kubernetes)
Environment-specific
# Generate for staging
npx generate-ci --env staging
# Generate for production
npx generate-ci --env production
Summary
CI Pipeline Generator: สร้าง CI/CD configs อัตโนมัติ
Platforms:
- GitHub Actions
- GitLab CI
- Jenkins
- CircleCI
Includes:
- Lint + Test
- Build + Push
- Deploy
- Security scans
Usage:
npx generate-ci --platform github
git add .github/workflows/
git commit -m "Add CI pipeline"
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-26
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!