What is environment promotion and how does it work in practice?
Answer
Environment promotion is the process of moving the same immutable artifact (Docker image, Helm chart) through a series of environments — typically dev → QA → staging → production — gaining confidence at each stage. The key principle is promote artifacts, not code: once an artifact is built in CI, that exact artifact is what gets deployed everywhere. You never rebuild for different environments; instead, you change configuration (environment variables, feature flags). In practice: CI builds and tags the Docker image with the git commit SHA, deploys to dev for smoke tests, runs integration tests in a QA environment, deploys to staging for acceptance tests and performance benchmarks, and finally (with an approval gate in CD) deploys to production. If the staging deployment reveals a bug, the pipeline stops — the problematic artifact never reaches production. This gives strong confidence that the production deployment will succeed.
Previous
What is GitOps and how does it differ from traditional push-based CD?
Next
What are monorepo CI strategies for handling affected changes?
More CI/CD Pipelines Questions
View all →- Intermediate What is blue-green deployment and how does it achieve zero-downtime releases?
- Intermediate What is a canary release and how does it reduce deployment risk?
- Intermediate What is a rolling deployment and how does it compare to blue-green?
- Intermediate What are feature flags and how do they integrate with CI/CD?
- Intermediate What is the testing pyramid in CI/CD and where does each test type run?