DevOps and CI/CD
Installation
SKILL.md
DevOps and CI/CD
Workflow
- Define the release unit and the rollback story first. If rollback takes >5 minutes or is manual, fix that before adding automation.
- Pipeline stages: lint/typecheck → unit → build (reproducible) → integration/contract → security scan → deploy to staging → smoke → progressive deploy → verify. Parallelize what is independent; fail fast.
- Target durations: PR feedback < 10 min, full pipeline < 25 min. Cache dependencies and build layers aggressively.
- Environment parity: same image, same config mechanism, differences only through env vars and secrets.
Pipeline rules
- Deterministic builds: lockfiles committed, pinned base image digests, no
latesttags, build metadata (commit SHA) baked in and exposed via a/versionendpoint. - Artifacts, not rebuilds: build once, promote the same artifact through environments.
- Secrets: from a secret manager at deploy time, never in the image or repo; rotate; scan history.
- Progressive delivery: canary or blue/green with automated gates on error rate, latency p95, and saturation. Auto-rollback on gate breach.
- Migrations decoupled from deploys and backward compatible (expand/contract).
- Branch protection: required checks, linear history or squash merge, signed commits where compliance demands.