Skip to content

Commit 123ad68

Browse files
authored
Use actual platform architecture when building images (#1681)
Signed-off-by: Shmuel Kallner <[email protected]>
1 parent f96a860 commit 123ad68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ SHELL = /usr/bin/env bash -o pipefail
2323

2424
GIT_COMMIT_SHA ?= "$(shell git rev-parse HEAD 2>/dev/null)"
2525
GIT_TAG ?= $(shell git describe --tags --dirty --always)
26-
PLATFORMS ?= linux/amd64
26+
TARGETARCH ?= $(shell go env GOARCH)
27+
PLATFORMS ?= linux/$(TARGETARCH)
2728
DOCKER_BUILDX_CMD ?= docker buildx
2829
IMAGE_BUILD_CMD ?= $(DOCKER_BUILDX_CMD) build
2930
IMAGE_BUILD_EXTRA_OPTS ?=

0 commit comments

Comments
 (0)