Skip to main content

Docker Digests

Creates a digests.txt file with the digests and image names of all images and manifests published. This is specially useful if you want to do something with this information, for instance, send it to GitHub's attestation action.

Here's a commented out configuration:

.kmdopkg.yaml
docker_digest:
# Name of the file.
#
# Default: 'digests.txt'
# Templates: allowed.
name_template: "{{ProjectName}}_digest.txt"

# Set this to true if you don't want to create the digest file.
#
# Templates: allowed.
disable: "{{ .Env.NO_DIGEST }}"
sha256: prefix

GitHub expects the digests without the sha256: prefix, so we trim the digest up until :.