-
Notifications
You must be signed in to change notification settings - Fork 625
Description
I looked at the release notes for buildx but there didn't seem to be any mention that would explain this.
Recently updated a Github CI action where it was required to opt out of attestations via provenance: false. When running buildx, our CI was inconsistent with versions used. 0.10.0 failed as shown below, while 0.10.2 was successful. There does not appear to be any difference in the logs beyond buildx version. Associated issue raised for Github Action build-push-action.
Docker Engine: 20.10.22
Buildx: 0.10.0
/usr/bin/docker buildx build --cache-from type=local,src=/tmp/.buildx-cache --iidfile /tmp/docker-build-push-AubJbU/iidfile --platform linux/amd64 --provenance false --tag mailserver-testing:ci --load --metadata-file /tmp/docker-build-push-AubJbU/metadata-file .
ERROR: attestations are not supported by the current buildkitd
Error: buildx failed with: ERROR: attestations are not supported by the current buildkitd
Docker Engine: 20.10.22
Buildx: 0.10.2
/usr/bin/docker buildx build --cache-from type=local,src=/tmp/.buildx-cache --iidfile /tmp/docker-build-push-ykKorz/iidfile --platform linux/amd64 --provenance false --tag mailserver-testing:ci --load --metadata-file /tmp/docker-build-push-ykKorz/metadata-file .
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 12.34kB done
#1 DONE 0.0s
Presumably this is a temporary issue, and buildx 0.10.2 will be more commonly used in future CI runs (several re-runs were done but the version on failed runners did not get bumped yet).
Any hints in the meantime as to why --provenance false is causing the error above? Is the option not properly handled in 0.10.0?
Failed attempt to resolve
I noticed this PR regarding --load, that was added to 0.10.1:
Detect invalid attestation configuration #1545
Perhaps we built with attestations previously as we were using the 3.3 version of docker/build-push-action where it seems it was enabled by default. That PR suggests the feature is not compatible with buildx --load? So 0.10.0 failed, and new releases of buildx handled it properly?
If that is it, clearing our CI image cache will probably resolve the issue 👍
UPDATE: Cleared entire CI cache and performed a full workflow re-run. No difference, still getting the same failure.