File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ ARG BASE_IMAGE=gcr.io/distroless/static:nonroot
5
5
6
6
# # Multistage build
7
7
FROM ${BUILDER_IMAGE} AS builder
8
+ ARG TARGETOS
9
+ ARG TARGETARCH
8
10
ENV CGO_ENABLED=0
9
- ENV GOOS=linux
10
- ENV GOARCH=amd64
11
+ ENV GOOS=$TARGETOS
12
+ ENV GOARCH=$TARGETARCH
11
13
ARG COMMIT_SHA=unknown
12
14
ARG BUILD_REF
13
15
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ SHELL = /usr/bin/env bash -o pipefail
23
23
24
24
GIT_COMMIT_SHA ?= "$(shell git rev-parse HEAD 2>/dev/null) "
25
25
GIT_TAG ?= $(shell git describe --tags --dirty --always)
26
- PLATFORMS ?= linux/amd64
26
+ PLATFORMS ?= linux/amd64,linux/arm64
27
27
DOCKER_BUILDX_CMD ?= docker buildx
28
28
IMAGE_BUILD_CMD ?= $(DOCKER_BUILDX_CMD ) build
29
29
IMAGE_BUILD_EXTRA_OPTS ?=
You can’t perform that action at this time.
0 commit comments