Build once, sign, version by content, keep immutability, prune old artifacts, and never rebuild for production.
Artifacts that age well
Build once, deploy many
Build in CI, promote the same artifact through staging → canary → production. Never rebuild for a different environment.
Sign the artifact
GPG, cosign, or platform-specific signing. A signed artifact can be verified before deploy; an unsigned one is a black box.
Version by content, not by tag
Tags move (
latest); digests do not.app@sha256:abc...is immutable;app:latestis not.Keep immutability
A registry that allows overwriting an artifact is a registry that cannot be audited. Make artifacts immutable at the registry level.
Prune old artifacts
A registry that keeps every artifact forever becomes huge and slow. Retention policies matter.