CI/CD Pipelines
Automate build, test, and deploy.
Install 安装
curl -sSL https://updating.cc/skills/devops/ci-cd-pipelines/SKILL.md -o ~/.agents/skills/devops__ci-cd-pipelines/SKILL.mdSKILL.md Preview 技能内容预览
---
name: CI/CD Pipelines
description: Automate build, test, and deploy.
---
# CI/CD Pipelines
CI/CD removes the human error from build, test, and release. Every change runs the same pipeline; deployments become boring and reversible.
## Principles
- **Build once, deploy many.** The same artifact goes to dev, staging, prod — only config differs. Building per-environment invites "works on my machine".
- **Fail fast.** Lint and unit tests first (seconds); slower integration/e2e later. A 10-minute pipeline that fails at minute 9 wastes 9 minutes per red build.
- **Every change on main triggers CI.** Even feature branches via merge or pre-merge check. Untested code is unmergable.
- **Deployable on every green build.** If green doesn't mean deployable, "green" loses meaning. Decouple "deployable" from "deployed" with feature flags.
## Safety
- Rollback is a first-class operation, not an afterthought. Every deploy must be reversible in one step.
- Canary / blue-green / progressive delivery for high-stakes deploys. Detect bad releases in 1% of traffic, not 100%.