Fix golang makefile var name (#10932)
This commit is contained in:
parent
59daa4c327
commit
585c297dda
3 changed files with 16 additions and 7 deletions
|
|
@ -23,7 +23,10 @@ INIT_BUILDX=$(DIR)/../hack/init-buildx.sh
|
|||
|
||||
BASE_IMAGE = $(shell cat $(DIR)/../NGINX_BASE)
|
||||
|
||||
GOLANG_VERSION = $(shell cat $(DIR)/../GOLANG_VERSION)
|
||||
# The env below is called GO_VERSION and not GOLANG_VERSION because
|
||||
# the gcb image we use to build already defines GOLANG_VERSION and is a
|
||||
# really old version
|
||||
GO_VERSION = $(shell cat $(DIR)/../GOLANG_VERSION)
|
||||
|
||||
REGISTRY ?= local
|
||||
NAME ?=
|
||||
|
|
@ -54,7 +57,7 @@ build: precheck ensure-buildx
|
|||
--label=org.opencontainers.image.licenses=Apache-2.0 \
|
||||
--label=org.opencontainers.image.description="Ingress NGINX $(NAME) image" \
|
||||
--build-arg BASE_IMAGE=$(BASE_IMAGE) \
|
||||
--build-arg GOLANG_VERSION=$(GOLANG_VERSION) \
|
||||
--build-arg GOLANG_VERSION=$(GO_VERSION) \
|
||||
--platform=${PLATFORMS} $(OUTPUT) \
|
||||
--progress=$(PROGRESS) \
|
||||
--pull $(EXTRAARGS) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue