What is a good image tagging strategy for production?
BeginnerProductionRegistries, Tagging & Supply Chain
Answer
Immutable tags per build (git-<sha> or build number) as the source of truth, semver tags on release (1.4.2, 1.4, 1), environment tags only as pointers if at all, and never deploy latest. In GitOps, record the digest. Enable tag immutability in the registry for release tags.
More on Registries, Tagging & Supply Chain
Why 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?IntermediateHow do you set up a pull-through cache for Docker Hub?Intermediate