ci-cd-generator
Generate CI/CD pipeline configurations for GitHub Actions, GitLab CI, Jenkins. Use when setting up automated build and deployment pipelines.
When & Why to Use This Skill
The CI/CD Generator skill automates the creation of robust pipeline configurations for major platforms including GitHub Actions, GitLab CI, CircleCI, and Jenkins. By providing ready-to-use templates for automated building, testing, and deployment, it streamlines the DevOps workflow, reduces manual configuration errors, and accelerates the software delivery lifecycle for developers and SRE teams.
Use Cases
- Quickly bootstrapping a GitHub Actions workflow for a new Node.js project to handle automated testing and artifact deployment.
- Generating a standardized .gitlab-ci.yml file for containerized applications to ensure consistent CI/CD processes across multiple repositories.
- Creating complex Jenkinsfile configurations for multi-stage deployment pipelines, including environment-specific build steps and manual approval gates.
- Migrating existing build processes between different CI/CD providers by generating equivalent configuration files for the target platform.
| name | ci-cd-generator |
|---|---|
| description | Generate CI/CD pipeline configurations for GitHub Actions, GitLab CI, Jenkins. Use when setting up automated build and deployment pipelines. |
CI/CD Generator Skill
CI/CDパイプラインの設定を生成するスキルです。
主な機能
- GitHub Actions: ワークフロー生成
- GitLab CI: .gitlab-ci.yml生成
- CircleCI: config.yml生成
- Jenkins: Jenkinsfile生成
GitHub Actions例
name: CI/CD Pipeline
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm ci
- run: npm test
- run: npm run lint
build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci
- run: npm run build
- uses: actions/upload-artifact@v3
with:
name: build
path: dist/
deploy:
needs: build
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- name: Deploy to Production
run: |
# デプロイコマンド
バージョン情報
- Version: 1.0.0