Automation · GitOps
Environment Promotion
Cheat sheet · https://pcornel.dk/topic.php?topic=5491
Answer
Environment promotion moves a change from dev to staging to production by updating each environment's configuration in Git, through pull requests or automated image updates.
Remember
- Promote changes via pull requests per environment.
- Use per-environment image tags or overlays.
- Automate promotion where tests are strong.
First checks
- Environment folders/branches (dev, staging, prod) — structure
- Promotion PRs (image tag bump) — process
- Automated promotion tools (Kargo, image updater) — automation
Verify in this order
dev → test → staging → prod via PRs
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5491