File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ DOCKER ?= docker
1717REGCTL ?= regctl
1818BUILDX =
1919PUSH_ON_BUILD ?= false
20+ ATTACH_ATTESTATIONS ?= false
2021
2122# #### Global variables #####
2223include $(CURDIR ) /versions.mk
@@ -39,7 +40,7 @@ IMAGE = $(IMAGE_NAME):$(IMAGE_TAG)
3940
4041ifeq ($(BUILD_MULTI_ARCH_IMAGES ) ,true)
4142BUILDX = buildx
42- DOCKER_BUILD_OPTIONS = --output=type=image,push=$(PUSH_ON_BUILD )
43+ DOCKER_BUILD_OPTIONS = --output=type=image,push=$(PUSH_ON_BUILD ) --provenance= $( ATTACH_ATTESTATIONS ) --sbom= $( ATTACH_ATTESTATIONS )
4344DOCKER_BUILD_PLATFORM_OPTIONS = --platform=linux/amd64,linux/arm64
4445else
4546# We also support building single-platform images.
@@ -58,7 +59,6 @@ DOCKERFILE = $(CURDIR)/deployments/container/Dockerfile
5859build :
5960 DOCKER_BUILDKIT=1 \
6061 $(DOCKER ) $(BUILDX ) build --pull \
61- --provenance=false --sbom=false \
6262 $(DOCKER_BUILD_OPTIONS ) \
6363 $(DOCKER_BUILD_PLATFORM_OPTIONS ) \
6464 --tag $(IMAGE ) \
You can’t perform that action at this time.
0 commit comments