CI/CD Pipeline
Use this procedure when requested or when the change warrants it. For routine changes, use the authorized delivery path and a focused check.
Use when creating or changing build, test, artifact, promotion, or deployment automation.
Procedure
- Define the source event, supported branches/tags, artifact, environments, and release policy.
- Make builds deterministic enough to identify exactly what source produced an artifact.
- Order fast feedback before expensive jobs while preserving required quality/security gates.
- Keep secrets scoped to the smallest jobs/environments and avoid exposing them to untrusted code.
- Promote immutable artifacts rather than rebuilding differently for each environment when practical.
- Design deployment strategy, health validation, concurrency controls, and rollback/recovery.
- Cache carefully: optimize time without allowing stale or untrusted state to bypass correctness.
- Emit useful job/deployment evidence for failures and releases.
Quality gate
The pipeline must make the safe path the normal path and allow a failed release to be diagnosed and recovered without guesswork.