How do you tag images in CI so builds are traceable?
BeginnerProductionBuild Performance & CI
Answer
Tag every build with the immutable git SHA (app:3f9c2ab), add semantic version tags on release (1.4.2, 1.4), and avoid reusing latest for deploys. Add OCI labels org.opencontainers.image.revision and .source. Deploy by digest recorded in the GitOps repo.
More on Build Performance & CI
How do you make Docker builds fast in CI where runners are ephemeral?BeginnerWhat are the cache backends in buildx?BeginnerWhy does `inline` cache often disappoint?AdvancedHow do you structure a Python Dockerfile for the best caching and size?IntermediateHow do you structure a Node.js production image?IntermediateHow do you build a small Java image?Beginner