Interview Prep/GitHub Actions/Debugging, Cost, Monorepos & Releases

What is the "build once, promote by digest" release model in Actions?

AdvancedConceptDebugging, Cost, Monorepos & Releases
Answer

CI on main builds the image once, scans it and pushes repo:sha-<short>; the digest is a job output. Deploys to dev and staging use that digest. A release tag does not rebuild: the release workflow finds the image for the tagged commit and adds a semver tag to the same manifest (in ECR, batch-get-image plus put-image; in GHCR, docker buildx imagetools create -t new existing), then prod deploys the identical digest. What you tested is byte-for-byte what you ship, and rollback is redeploying an older digest.

All GitHub Actions questions Roadmap: GitHub Actions

More on Debugging, Cost, Monorepos & Releases