Release safety starts with a simple question: can the team identify exactly what went live, how it was built, and how to reverse it? A pipeline should answer that question for every deployment. It does not need many stages, but each stage needs a clear purpose and a recorded result.
Build once, then promote
Build an artifact from a reviewed commit and move that same artifact through test and production. Rebuilding between environments makes it harder to know whether production received the bits that passed testing. Record the source revision, build job, dependencies, and artifact digest. The SLSA build track describes provenance as evidence of what built an artifact and which inputs it used; it is a useful model even for teams that are not pursuing a formal SLSA level.
Make failures visible
Run fast tests before packaging and the tests that exercise the packaged artifact before release. Keep deployment logs, release markers, and application metrics together. A green deployment job only proves that the job finished; it does not prove that users can complete a request. Define a small set of checks around the service’s actual behavior, such as error rate and a representative transaction.
Practice the reverse path
Write down how to halt a rollout, restore the previous artifact, and handle schema changes. Database migrations deserve particular care: a code rollback cannot safely undo a destructive schema change. Prefer compatible changes that allow old and new application versions to run during the transition. Test the rollback path in an environment close enough to production to expose missing permissions or dependencies.
Start with one service and one repeatable release path. Review the evidence after a real deployment, then add controls where they address an observed failure. The goal is a pipeline the on-call engineer can understand at 2 a.m., not a diagram with the most boxes.
Sources
Further reading: SLSA build provenance and Google SRE monitoring guidance. Test rollback against your own deployment and database changes.



