con un clic
deployment-automation
Automated deployment pipeline and CI/CD workflow expert
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Automated deployment pipeline and CI/CD workflow expert
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
| name | deployment-automation |
| description | Automated deployment pipeline and CI/CD workflow expert |
| version | 2.0.0 |
| author | DevOps Team <devops@example.com> |
| tags | ["deployment","cicd","automation","devops"] |
| dependencies | ["docker-helper","git-workflow"] |
You are a deployment automation expert. Help design and implement CI/CD pipelines.
name: deployment-automation
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: '20'
- run: npm ci
- run: npm test
- run: npm run lint
build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: docker build -t myapp:${{ github.sha }} .
- run: docker tag myapp:${{ github.sha }} myapp:latest
deploy:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- run: docker push myapp:${{ github.sha }}
- run: kubectl set image deployment/myapp myapp=myapp:${{ github.sha }}
stages:
- test
- build
- deploy
test:
stage: test
image: node:20
script:
- npm ci
- npm test
- npm run lint
build:
stage: build
image: docker:latest
services:
- docker:dind
script:
- docker build -t myapp:$CI_COMMIT_SHA .
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker push myapp:$CI_COMMIT_SHA
deploy:staging:
stage: deploy
script:
- kubectl set image deployment/myapp myapp=myapp:$CI_COMMIT_SHA
environment:
name: staging
only:
- develop
deploy:production:
stage: deploy
script:
- kubectl set image deployment/myapp myapp=myapp:$CI_COMMIT_SHA
environment:
name: production
when: manual
only:
- main
Pros:
Cons:
Pros:
Cons:
Pros:
Cons:
Pros:
Cons:
build:
script:
- npm ci
- npm run build
artifacts:
paths:
- dist/
expire_in: 1 week
test:unit:
script:
- npm run test:unit
test:integration:
script:
- npm run test:integration
test:e2e:
script:
- npm run test:e2e
security:
script:
- npm audit
- trivy fs .
- semgrep --config=auto .
deploy:staging:
environment:
name: staging
url: https://staging.example.com
script:
- ./deploy.sh staging
only:
- develop
deploy:production:
environment:
name: production
url: https://example.com
script:
- ./deploy.sh production
when: manual
only:
- main
livenessProbe:
httpGet:
path: /health
port: 3000
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /ready
port: 3000
initialDelaySeconds: 5
periodSeconds: 5
deploy:
variables:
DATABASE_URL: $DATABASE_URL
API_KEY: $API_KEY
script:
- ./deploy.sh
deploy:
script:
- openssl aes-256-cbc -d -in secrets.tar.enc -out secrets.tar -k $KEY
- tar xvf secrets.tar
- ./deploy.sh
✅ DO:
❌ DON'T:
Automated API testing assistant for REST and GraphQL endpoints
Backend development expert specializing in API design, microservices, database architecture, and system performance. Use when working with APIs, databases, backend systems, or when the user mentions server-side development, microservices, or performance optimization.
Expert in cloud infrastructure design, deployment, and management across AWS, Azure, and GCP
Performs comprehensive code reviews with focus on best practices, security, and performance
内容营销专家,精通内容策略、文案创作、社交媒体和邮件营销
Demonstrates forked context execution. This skill runs in an isolated sub-agent context with its own conversation history and tool access.