From 6afd8931b2268b6f6eeb1a6e3c32a2fd5989babb Mon Sep 17 00:00:00 2001 From: Javier B Perez Date: Mon, 8 Jul 2019 17:41:13 -0700 Subject: [PATCH] kube-cross makefile add REGISTRY REGISTRY is the docker registry where to push the image. --- build/build-image/cross/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build/build-image/cross/Makefile b/build/build-image/cross/Makefile index 2c3e51cb0ae..1ca326ff70c 100644 --- a/build/build-image/cross/Makefile +++ b/build/build-image/cross/Makefile @@ -14,14 +14,15 @@ .PHONY: build push -IMAGE=kube-cross +REGISTRY?=staging-k8s.gcr.io +IMAGE=$(REGISTRY)/kube-cross TAG=$(shell cat VERSION) all: push build: - docker build --pull -t staging-k8s.gcr.io/$(IMAGE):$(TAG) . + docker build --pull -t $(IMAGE):$(TAG) . push: build - docker push staging-k8s.gcr.io/$(IMAGE):$(TAG) + docker push $(IMAGE):$(TAG)