When designing and implementing web interfaces to ensure they are usable by everyone.
中文简介正在准备中。当前显示原文说明。
When configuring automated build, test, and deployment workflows for a repository.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Pipelines are the line between "works on my machine" and "production is down." This skill ensures code is built exactly once, tested comprehensively, and deployed reliably through immutable artifacts without human intervention.
pull_request. Run builds/deployments on push to main or upon release tags.continue-on-error: true)npm run build in staging, then again in productioncontinue-on-error: true instead of fixing flaky testdeploy.sh from laptop❌ Anti-pattern (Rebuilding, secrets hardcoded, no promotion):
# BAD: Separate build jobs per environment
build-staging:
script:
- npm run build
- docker build -t myapp:staging .
- docker push myapp:staging
only: [main]
build-production:
script:
- npm run build # REBUILDING!
- docker build -t myapp:latest . # No SHA tag!
- docker push myapp:latest
only: [tags]
# BAD: Secrets hardcoded
deploy-production:
script:
- kubectl set image deployment/api api=$DOCKER_IMAGE
env:
AWS_KEY: "AKIA1234567890" # LEAKED!
DB_PASSWORD: "super-secret-123" # LEAKED!
✅ Correct pattern (Single artifact, promotion, secrets managed):
# CORRECT: Single build, tagged with SHA
build:
stage: build
script:
- docker build -t $CI_REGISTRY/myapp:$CI_COMMIT_SHA .
- docker push $CI_REGISTRY/myapp:$CI_COMMIT_SHA
only: [main, tags]
# CORRECT: Promote existing artifact (no rebuild)
deploy-staging:
stage: deploy
script:
- kubectl set image deployment/api api=$CI_REGISTRY/myapp:$CI_COMMIT_SHA
environment: staging
only: [main]
deploy-production:
stage: deploy
script:
- kubectl set image deployment/api api=$CI_REGISTRY/myapp:$CI_COMMIT_SHA
environment: production
only: [tags]
when: manual # Explicit approval required
# CORRECT: Secrets injected via platform
deploy-production:
script:
- echo $AWS_ACCESS_KEY_ID | aws sts get-caller-identity # Platform injects
- helm upgrade myapp ./chart -f values-prod.yaml
secrets:
AWS_ACCESS_KEY_ID:
vault: aws/prod/access_key
environment: production
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
When designing and implementing web interfaces to ensure they are usable by everyone.
中文简介正在准备中。当前显示原文说明。
When creating or extending an HTTP API for client consumption.
中文简介正在准备中。当前显示原文说明。
When improving read performance and reducing database load.
中文简介正在准备中。当前显示原文说明。
When asynchronously reviewing peer code before merging into the main branch.
中文简介正在准备中。当前显示原文说明。
When addressing slow application endpoints, high database CPU usage, or standardizing data access patterns.
中文简介正在准备中。当前显示原文说明。
When isolating and fixing unpredictable or complex software bugs.
中文简介正在准备中。当前显示原文说明。