File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,11 @@ OCI_BIN ?= $(shell basename ${OCI_BIN_PATH})
4545OCI_BUILD_OPTS ?=
4646KREW_PLUGIN ?=false
4747
48+ ifeq ("$(OCI_BIN ) ","docker")
49+ # https://stackoverflow.com/questions/75521775/buildx-docker-image-claims-to-be-a-manifest-list
50+ EXTRA_BUILD_FLAGS ?= --provenance=false
51+ endif
52+
4853ifneq ($(CLEAN_BUILD ) ,)
4954 BUILD_DATE := $(shell date +%Y-%m-%d\ %H:%M)
5055 BUILD_SHA := $(shell git rev-parse --short HEAD)
@@ -58,7 +63,7 @@ YQ_VERSION = v4.45.1
5863# build a single arch target provided as argument
5964define build_target
6065 echo 'building image for arch $(1 ) '; \
61- DOCKER_BUILDKIT=1 $(OCI_BIN ) buildx build --load --build-arg LDFLAGS="${LDFLAGS}" --build-arg TARGETARCH=$(1 ) ${OCI_BUILD_OPTS} -t ${IMAGE}-$(1 ) -f Dockerfile .;
66+ DOCKER_BUILDKIT=1 $(OCI_BIN ) buildx build --load --build-arg LDFLAGS="${LDFLAGS}" --build-arg TARGETARCH=$(1 ) ${OCI_BUILD_OPTS} ${EXTRA_BUILD_FLAGS} -t ${IMAGE}-$(1 ) -f Dockerfile .;
6267endef
6368
6469# push a single arch target image
You can’t perform that action at this time.
0 commit comments