Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Problem
When running the
cloudbuild.yaml
below, I'm running into the following error:ERROR: (gcloud.beta.container.binauthz.attestations.sign-and-create) A Docker registry domain must be specified.
What I expected
The provided image should have been attested
Steps to reproduce
The same can be observed when following the official tutorial (i.e. running the
gcloud container binauthz attestations create
command)What I've found
The problem is resolved when adding the image's digest to
--artifact-url
(i.e.${_LOCATION}-docker.pkg.dev/${PROJECT_ID}/hello-world/nginx@sha256:abc123
). However, this is obviously not practical in a build pipeline because I don't know the digest beforehand.Am I supposed to retrieve the digest programmatically?
Other information
cloudbuild.yaml
: