Add missing ARCH variable
This commit is contained in:
parent
ea8e711d2c
commit
25ffd643f4
2 changed files with 8 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -61,7 +61,7 @@ endif
|
|||
|
||||
REGISTRY ?= quay.io/kubernetes-ingress-controller
|
||||
|
||||
BASE_IMAGE ?= $(REGISTRY)/nginx:e3c49c52f4b74fe47ad65d6f3266a02e8b6b622f
|
||||
BASE_IMAGE ?= quay.io/kubernetes-ingress-controller/nginx:e3c49c52f4b74fe47ad65d6f3266a02e8b6b622f
|
||||
|
||||
GOARCH=$(ARCH)
|
||||
|
||||
|
|
|
@ -17,9 +17,16 @@ REGISTRY ?= quay.io/kubernetes-ingress-controller
|
|||
|
||||
IMAGE = $(REGISTRY)/e2e
|
||||
|
||||
HOST_ARCH = $(shell which go >/dev/null 2>&1 && go env GOARCH)
|
||||
ARCH ?= $(HOST_ARCH)
|
||||
ifeq ($(ARCH),)
|
||||
$(error mandatory variable ARCH is empty, either set it when calling the command or make sure 'go env GOARCH' works)
|
||||
endif
|
||||
|
||||
.PHONY: image
|
||||
image:
|
||||
docker build \
|
||||
--build-arg TARGETARCH="$(ARCH)" \
|
||||
--build-arg K8S_RELEASE=v1.15.7 \
|
||||
--build-arg RESTY_CLI_VERSION=0.25rc2 \
|
||||
--build-arg RESTY_CLI_SHA=a38d850441384fa037a5922ca012dcce8708d0e4abe34ad2fe4164a01b28bdfb \
|
||||
|
|
Loading…
Reference in a new issue