Skip to content

Commit b16e670

Browse files
committed
Fix to allow overriding DOCKER_BUILD_PLATFORM_OPTIONS
Signed-off-by: Shiva Krishna, Merla <smerla@nvidia.com>
1 parent 16ab17e commit b16e670

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

deployments/container/multi-arch.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
# limitations under the License.
1414

1515
PUSH_ON_BUILD ?= false
16-
DOCKER_BUILD_OPTIONS = --output=type=image,push=$(PUSH_ON_BUILD) --provenance=false --sbom=false
17-
DOCKER_BUILD_PLATFORM_OPTIONS = --platform=linux/amd64,linux/arm64
16+
ATTACH_ATTESTATIONS ?= false
17+
DOCKER_BUILD_OPTIONS = --output=type=image,push=$(PUSH_ON_BUILD) --provenance=$(ATTACH_ATTESTATIONS) --sbom=$(ATTACH_ATTESTATIONS)
18+
DOCKER_BUILD_PLATFORM_OPTIONS ?= --platform=linux/amd64,linux/arm64

deployments/container/native-only.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
# limitations under the License.
1414

1515
PUSH_ON_BUILD ?= false
16-
DOCKER_BUILD_PLATFORM_OPTIONS = --platform=linux/amd64
16+
ATTACH_ATTESTATIONS ?= false
17+
DOCKER_BUILD_PLATFORM_OPTIONS ?= --platform=linux/amd64
18+
DOCKER_BUILD_OPTIONS = --output=type=image,push=$(PUSH_ON_BUILD) --provenance=$(ATTACH_ATTESTATIONS) --sbom=$(ATTACH_ATTESTATIONS)
1719

1820
ifeq ($(PUSH_ON_BUILD),true)
1921
$(DOCKER) push "$(IMAGE)"

0 commit comments

Comments
 (0)