From 917bc9ce7b41cd981f87c3f6e21e7b790ecc66e7 Mon Sep 17 00:00:00 2001 From: Ashutosh Narkar Date: Tue, 27 Jun 2023 15:47:16 -0700 Subject: [PATCH] Disable provenance attestations in buildx Buildx version >=0.10 generates a new OCI format with support for provenance. As a result the following error is generated on M1/M2 while inspecting the manifest > OCI manifest found, but accept header does not support OCI manifests The suggested fix is to temporarily disable provenance. Fixes: #5877 Signed-off-by: Ashutosh Narkar --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 71d3de7c92..0b7688b630 100644 --- a/Makefile +++ b/Makefile @@ -373,6 +373,7 @@ push-manifest-list-%: ensure-executable-bin --build-arg BASE=cgr.dev/chainguard/glibc-dynamic:latest \ --build-arg BIN_DIR=$(RELEASE_DIR) \ --platform $(DOCKER_PLATFORMS) \ + --provenance=false \ --push \ . $(DOCKER) buildx build \ @@ -380,6 +381,7 @@ push-manifest-list-%: ensure-executable-bin --build-arg BASE=cgr.dev/chainguard/glibc-dynamic:latest-dev \ --build-arg BIN_DIR=$(RELEASE_DIR) \ --platform $(DOCKER_PLATFORMS) \ + --provenance=false \ --push \ . $(DOCKER) buildx build \ @@ -388,6 +390,7 @@ push-manifest-list-%: ensure-executable-bin --build-arg BASE=cgr.dev/chainguard/glibc-dynamic:latest \ --build-arg BIN_DIR=$(RELEASE_DIR) \ --platform $(DOCKER_PLATFORMS) \ + --provenance=false \ --push \ . @@ -397,6 +400,7 @@ push-manifest-list-%: ensure-executable-bin --build-arg BIN_DIR=$(RELEASE_DIR) \ --build-arg BIN_SUFFIX=_static \ --platform $(DOCKER_PLATFORMS_STATIC) \ + --provenance=false \ --push \ . @@ -406,6 +410,7 @@ push-manifest-list-%: ensure-executable-bin --build-arg BIN_DIR=$(RELEASE_DIR) \ --build-arg BIN_SUFFIX=_static \ --platform $(DOCKER_PLATFORMS_STATIC) \ + --provenance=false \ --push \ .