Skip to content

Commit

Permalink
Merge pull request #8252 from kaovilai/mkcontainer-multiplat
Browse files Browse the repository at this point in the history
Allow multi-arch manifest-list from `make container`
  • Loading branch information
shubham-pampattiwar authored Nov 14, 2024
2 parents ec2013b + 3f4a1c2 commit 7a51e0d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,15 @@ define BUILDX_ERROR
buildx not enabled, refusing to run this recipe
see: https://velero.io/docs/main/build-from-source/#making-images-and-updating-velero for more info
endef

# comma cannot be escaped and can only be used in Make function arguments by putting into variable
comma=,
# The version of restic binary to be downloaded
RESTIC_VERSION ?= 0.15.0

CLI_PLATFORMS ?= linux-amd64 linux-arm linux-arm64 darwin-amd64 darwin-arm64 windows-amd64 linux-ppc64le
BUILDX_PLATFORMS ?= $(subst -,/,$(ARCH))
BUILDX_OUTPUT_TYPE ?= docker
BUILDX_PUSH ?= false
BUILDX_OUTPUT_TYPE ?= image$(subst false,,$(subst true,$(comma)push=true,$(BUILDX_PUSH)))

# set git sha and tree state
GIT_SHA = $(shell git rev-parse HEAD)
Expand Down

0 comments on commit 7a51e0d

Please sign in to comment.