Build once, promote everywhere
On This Lesson 4 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
deploy the same artifact to every environment.
Planned topics
- Build one immutable image per commit, tagged by version or commit SHA, never
latest. - Environments differ only by configuration and secrets, injected at deploy time.
- What passed staging is byte-for-byte what reaches production.
- Rebuilding per environment can produce a different artifact and breaks that guarantee.
Draft outline details
Demonstration
pipeline: build → image shop/orders:3f2a9c1 → deploy dev → deploy staging → deploy prod, one image digest throughout.
Check your understanding
Why not rebuild for production?
Show answer
The rebuilt artifact may differ from the one that was tested.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.