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 is a powerful DevOps automation tool designed to instantly create production-ready pipeline configurations for GitHub Actions, GitLab CI, CircleCI, and Jenkins. By automating the boilerplate setup for build, test, and deployment stages, it helps developers implement robust Continuous Integration and Continuous Delivery practices with minimal manual effort, ensuring consistency and reducing configuration errors across software projects.
Use Cases
- Automating the initial setup of a new repository with standardized GitHub Actions workflows for testing and linting.
- Migrating existing build processes from legacy systems to modern YAML-based configurations like GitLab CI or CircleCI.
- Generating complex Jenkinsfile scripts for multi-stage deployment pipelines including artifact management and environment-specific triggers.
- Standardizing CI/CD templates across multiple microservices to ensure a consistent and reliable software delivery lifecycle.
| 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