Environment Isolation and Traditional Workflows
Organizations often isolate each deployment stage:- Separate clusters or infrastructure for dev, test, staging, and prod
- Distinct Docker registries or accounts per environment
- Build the Docker image in development
- Deploy and test
- Push code to test, triggering a fresh build
- Deploy in test; repeat build-deploy in staging
- Rebuild and deploy in production
Rebuilding at each stage can introduce unintended changes—updated package versions, OS patches, or dependency drift—undermining the reproducibility of your pipeline.
| Stage | Action | Drawback |
|---|---|---|
| Development | Build & initial test | Unique image per build |
| Test | New build & deploy | Version drift risk |
| Staging | Fresh rebuild & deploy | Slow feedback loop |
| Production | Final rebuild & deploy | Inconsistent with earlier stages |

Benefits of DTR Image Promotion
By leveraging DTR promotions, you gain:- Single build for all environments
- Guaranteed consistency (same image by digest)
- Faster pipeline throughput
- Simplified auditing and traceability
How DTR Image Promotion Works
- Build once in development and push to your dev repository.
- DTR automatically promotes that exact image (tag or digest) to test.
- After tests pass, the same image is promoted to staging.
- Upon approval, it moves to production—no rebuilds required.
Image promotion preserves the original digest, ensuring the exact artifact tested in QA reaches production.
Configuring Image Promotion in DTR
Navigate to your repository’s Promotion tab in the DTR UI to define rules:| Configuration | Description | Example |
|---|---|---|
| Source trigger | Tag name or digest that initiates promotion | stable, sha256:... |
| Condition | Matching rule (equals, starts with, regex) | starts with "v1.2." |
| Target registry | Destination repository or registry (same or different) | registry.company.com/test |

Next Steps
We’ll now demonstrate setting up and using image promotions in a live DTR instance, covering:- Access control and permissions
- Complex promotion filters
- Rollback strategies