From 4aa7af6de8ab0dfe7998d640b7788d4af64458db Mon Sep 17 00:00:00 2001 From: "Shiva Krishna, Merla" Date: Mon, 10 Jun 2024 17:51:01 -0700 Subject: [PATCH] Exclude attestation manifests (sbom, provenance) during the build using buildx as some tools doesn't understand these manifests (oc mirror) Signed-off-by: Shiva Krishna, Merla --- multi-arch.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/multi-arch.mk b/multi-arch.mk index 06c51adc..896a5cac 100644 --- a/multi-arch.mk +++ b/multi-arch.mk @@ -13,7 +13,8 @@ # limitations under the License. PUSH_ON_BUILD ?= false -DOCKER_BUILD_OPTIONS = --output=type=image,push=$(PUSH_ON_BUILD) +ATTACH_ATTESTATIONS ?= false +DOCKER_BUILD_OPTIONS = --output=type=image,push=$(PUSH_ON_BUILD),provenance=$(ATTACH_ATTESTATIONS),sbom=$(ATTACH_ATTESTATIONS) DOCKER_BUILD_PLATFORM_OPTIONS = --platform=linux/amd64,linux/arm64 REGCTL ?= regctl