Add missing ARCH variable

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-06-02 15:41:56 -04:00
parent ea8e711d2c
commit 25ffd643f4
2 changed files with 8 additions and 1 deletions

View file

@ -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)

View file

@ -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 \