Connecting a Deployment to a Git Commit
A deployment should be traceable to the source commit that was built, which may differ from the latest commit visible on a hosting service.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Compare three observations
A pushed main tip, a completed build, and the currently served version identify different points. If a build failed, the service can still serve the preceding result. Remote branch updates cover the Git-side event.
Verify an actual changed behavior
Check the build's commit identity and confirm one intended route or output in the live service after replacement. Integration tests offer an analogous check at an interface.[1]
Follow one commit through the build and runtime
A push advances a branch to commit C. The build system may still serve an artifact from B until a deployment completes. Compare the commit recorded by the build, the identity of the released artifact and evidence from the running service. See branches and artifacts.
Remote branch tip: C
Finished build: commit C, artifact digest recorded
Running service initially: deployment B
After activation and smoke test: deployment C observed
Identify the specific service and public route
Multiple environments or replicas can deploy at different moments. A green build by itself gives no evidence about the targeted public endpoint. Verify a changed behavior or trusted release marker in the intended environment.