File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 11# # Multistage build
2- FROM golang:1.23-alpine as build
2+ FROM golang:1.23-alpine AS build
33ENV CGO_ENABLED=0
44ENV GOOS=linux
55ENV GOARCH=amd64
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ SHELL = /usr/bin/env bash -o pipefail
2222.SHELLFLAGS = -ec
2323
2424GIT_TAG ?= $(shell git describe --tags --dirty --always)
25- PLATFORMS ?= linux/amd64,linux/arm64
25+ PLATFORMS ?= linux/amd64
2626DOCKER_BUILDX_CMD ?= docker buildx
2727IMAGE_BUILD_CMD ?= $(DOCKER_BUILDX_CMD ) build
2828IMAGE_BUILD_EXTRA_OPTS ?=
@@ -36,6 +36,13 @@ IMAGE_TAG ?= $(IMAGE_REPO):$(GIT_TAG)
3636BASE_IMAGE ?= gcr.io/distroless/static:nonroot
3737BUILDER_IMAGE ?= golang:$(GO_VERSION )
3838
39+ ifdef EXTRA_TAG
40+ IMAGE_EXTRA_TAG ?= $(IMAGE_REPO ) :$(EXTRA_TAG )
41+ endif
42+ ifdef IMAGE_EXTRA_TAG
43+ IMAGE_BUILD_EXTRA_OPTS += -t $(IMAGE_EXTRA_TAG )
44+ endif
45+
3946# #@ General
4047
4148# The help target prints out all targets with their descriptions organized
You can’t perform that action at this time.
0 commit comments