ci-pipeline-generator
Generator สำหรับสร้าง CI/CD pipeline configs (GitHub Actions, GitLab CI) พร้อม testing, linting, building และ deployment
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
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"
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!