commit tag
An image tag made from the commit SHA that produced the image, so any running container can be traced to its source.
In more detail
It identifies the build, while the digest identifies the exact bytes. A shortened SHA keeps it readable in logs.
Example
short=${GITHUB_SHA:0:12}
image=ghcr.io/acme/checkout:$shortRelated terms
- tag — A human-readable label such as 3.20 or latest attached to an image in a repository, which can be moved to point at a different image.
- object ID — The hash that names a Git object, such as a commit, and that you type to refer to it.
- digest — A SHA-256 hash of an image's manifest that identifies its exact content and can never be moved to other bytes.
Taught in
- Building and Pushing Container Images — Continuous Integration & Continuous Delivery Pipelines