How do you promote images across environments safely?
IntermediateProductionRegistries, Tagging & Supply Chain
Answer
Build once, test, and promote the same digest: copy between registries with crane copy or skopeo copy --all (preserves multi-arch), or add environment pointers/tags. Never rebuild for prod; rebuilding can pull different dependencies and invalidates test evidence. Record promotion in Git for audit.
crane copy dev.reg/app@sha256:abc prod.reg/app:1.4.2
More on Registries, Tagging & Supply Chain
What is a good image tagging strategy for production?BeginnerWhy is deploying by digest better than by tag?IntermediateHow do you enable immutable tags and lifecycle rules in ECR?IntermediateHow does ECR handle scanning and replication?IntermediateHow do you give an EKS node or CI job access to ECR with least privilege?IntermediateDocker Hub vs ECR vs GHCR vs Harbor: how do you choose?Intermediate