Use this when moving changes from dev to production in GitOps.
Environment Promotion
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.
1. Promotion moves changes through environments.
2. Same artefact (image digest) across environments.
3. PR per promotion.
4. Tests/gates between stages.
5. Track versions per environment.
dev → test → staging → prod via PRs
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Different code paths per environment, so tests show little.
- Promoting by copying files by hand.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Promote changes via pull requests per environment.
- Use per-environment image tags or overlays.
- Automate promotion where tests are strong.
- Environment folders/branches (dev, staging, prod) — structure
- Promotion PRs (image tag bump) — process
- Automated promotion tools (Kargo, image updater) — automation
ReferenceWhy it matters1 section · depth on demand
What it is
Environment promotion moves a tested version from dev to staging to production, usually by updating a version or image tag in the next environment's folder or branch via merge request.
ReferenceHow it works1 section · depth on demand
In depth
Environment promotion moves a tested change from one environment to the next — development, test, staging, production — in GitOps by changing what each environment's configuration points to. The same artifact (image digest, chart version, configuration) moves through the environments; only environment-specific values differ.
Common repository layouts:
| Layout | Promotion |
|---|---|
Directory per environment (envs/test, envs/prod) | PR updating the version in the next directory |
| Branch per environment | Merge between branches (harder to keep tidy) |
| Separate repo per environment | PR to the production repo |
Automate promotion PRs after successful tests (tools like Kargo or Argo CD Image Updater help), and keep the production merge as the human approval point.
ReferenceImportant terms & boundaries1 section · depth on demand
Example
Folder-per-environment GitOps layout:
apps/web/base/
apps/web/overlays/dev/kustomization.yaml # image tag 1.4.2
apps/web/overlays/prod/kustomization.yaml # image tag 1.4.1
Promotion = a merge request that changes the tag in prod to the version already tested in dev.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in GitOps > Environment Promotion. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://opengitops.dev/ · confidence 94%