From 1673d85b76fa4b1c0c39991ee6479cf2d70967fe Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Arango Gutierrez Date: Fri, 2 Aug 2024 17:45:28 +0200 Subject: [PATCH] Only add --provenance flag during multiarch builds Signed-off-by: Carlos Eduardo Arango Gutierrez --- deployments/container/Makefile | 1 - deployments/container/multi-arch.mk | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/deployments/container/Makefile b/deployments/container/Makefile index 75924965..af667882 100644 --- a/deployments/container/Makefile +++ b/deployments/container/Makefile @@ -60,7 +60,6 @@ endif build: DOCKER_BUILDKIT=1 \ $(DOCKER) $(BUILDX) build --pull \ - --provenance=false --sbom=false \ $(DOCKER_BUILD_OPTIONS) \ $(DOCKER_BUILD_PLATFORM_OPTIONS) \ --tag $(IMAGE) \ diff --git a/deployments/container/multi-arch.mk b/deployments/container/multi-arch.mk index fdb3426a..f10750e8 100644 --- a/deployments/container/multi-arch.mk +++ b/deployments/container/multi-arch.mk @@ -13,5 +13,5 @@ # limitations under the License. PUSH_ON_BUILD ?= false -DOCKER_BUILD_OPTIONS = --output=type=image,push=$(PUSH_ON_BUILD) +DOCKER_BUILD_OPTIONS = --output=type=image,push=$(PUSH_ON_BUILD) --provenance=false --sbom=false DOCKER_BUILD_PLATFORM_OPTIONS = --platform=linux/amd64,linux/arm64