Interview Prep/Git & GitHub/GitHub Actions, environments and releases in production

How do you version and publish container images from Git tags?

IntermediateProductionGitHub Actions, environments and releases in production
Answer

<details> <summary><b>Answer</b></summary>

On v* tags build and push ghcr.io/org/app:1.4.0, :1.4 and :latest, but deploy by digest. Use docker/metadata-action to derive tags from refs consistently and attach provenance.

All Git & GitHub questions Roadmap: Git & GitHub

More on GitHub Actions, environments and releases in production