Skip to content

Docker Digests

This will be available in the next release (v2.12). Stay tuned!

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:

.goreleaser.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 }}"

See this page for information on how to use this to attest images.

Template Language

Discover more about the name template engine.

sha256: prefix

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