Commit 70d3b21
committed
fix(ci): add setup-buildx-action to fix build-image attestation failure
build-image has been failing on every run since serve GDI as a
validation service + buildable image (#27) landed, with:
ERROR: failed to build: Attestation is not supported for the docker driver.
Learn more at https://docs.docker.com/go/attestations/
docker/build-push-action@v6 requests provenance and SBOM attestations
(provenance: true, sbom: true), which require a `docker-container`
buildx builder. Without an explicit docker/setup-buildx-action step,
buildx falls back to the plain `docker` driver bound to the host
daemon's default context, which cannot emit attestations.
Add docker/setup-buildx-action@v3 before the build step to create a
docker-container builder (its default behavior), enabling attestations
to work as configured. Kept provenance/sbom enabled rather than
disabling them, since this image's sha tag is consumed and pinned by
prophet-platform deploy manifests.
Verified locally: a docker-container-driver buildx builder completes
`docker buildx build --attest type=provenance --attest
type=sbom,disabled=false ...` successfully (exports an attestation
manifest), confirming the driver change is sufficient to resolve this
exact error.1 parent bdac67f commit 70d3b21
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
| |||
0 commit comments