CI/CD as a chain of evidence
Promote the artifact you tested.
The idea
Build one immutable artifact, run rule and integration tests, scan it, and promote that same artifact through environments. Record the source revision, dependencies, migration version, and configuration contract. Rebuilding separately for production introduces an untested difference.
Follow the flow
Make it concrete
This excerpt isolates the concept. Connect it to the booking API as you work through the exercise.
Source revision
→ tests + dependency checks
→ reproducible build
→ signed or checksummed artifact
→ staging smoke checks
→ production deployment + verificationDecisions that matter
- Fast feedback comes from small early checks and meaningful later boundary tests.
- A green pipeline proves its checks, not every production assumption.
- Deployment identity should have only the permissions needed to deploy.
Your turn
A staging image passed tests, but production rebuilds from a moving branch. What evidence is missing?
Reveal a worked answer
There is no proof production runs the tested artifact. Promote the same digest, record the deployment revision, and verify external behavior. Keep secrets injected at runtime rather than baked into the artifact.