Skip to content

Commit

Permalink
Allow REGISTRY to be specified externally
Browse files Browse the repository at this point in the history
Change-Id: Ibe08435baed79c8ac87beebf9a7f5dc435d49fc3
  • Loading branch information
dims committed Mar 15, 2019
1 parent 5dda951 commit 664e012
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build/build-image/cross/Makefile
Expand Up @@ -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)

0 comments on commit 664e012

Please sign in to comment.