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:$short

Related terms

Taught in

References