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.
More on Debugging, Cost, Monorepos & Releases
How do you enable debug logging, and what does each flag show?BeginnerWhat tools help you inspect a run from the terminal?BeginnerHow is GitHub Actions billed for private repos, and what are the multipliers?IntermediateName the top ways to reduce Actions minutes and wall-clock time.IntermediateHow do you build only the services that changed in a monorepo?AdvancedWhy are workflow-level `paths` filters problematic with required checks, and what is the fix?Intermediate