kube-cross makefile add REGISTRY

REGISTRY is the docker registry where to push the image.
This commit is contained in:
Javier B Perez 2019-07-08 17:41:13 -07:00 committed by GitHub
parent 2cfd4a5eb9
commit 6afd8931b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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