From bb489633b9c2fad71a249afeb4d4b5d20a4a1c02 Mon Sep 17 00:00:00 2001 From: bprashanth Date: Fri, 17 Feb 2017 10:20:34 -0800 Subject: [PATCH] Add PUSH_TOOL to ubuntu Makefile --- images/ubuntu-slim/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/images/ubuntu-slim/Makefile b/images/ubuntu-slim/Makefile index e65c44022..07fd5c88f 100755 --- a/images/ubuntu-slim/Makefile +++ b/images/ubuntu-slim/Makefile @@ -4,6 +4,7 @@ TAG ?= 0.7 PREFIX ?= gcr.io/google_containers/ubuntu-slim BUILD_IMAGE ?= ubuntu-build TAR_FILE ?= rootfs.tar +PUSH_TOOL ?= gcloud container: clean docker build --pull -t $(BUILD_IMAGE) -f Dockerfile.build . @@ -12,7 +13,7 @@ container: clean docker build --pull -t $(PREFIX):$(TAG) . push: container - docker push $(PREFIX):$(TAG) + $(PUSH_TOOL) docker push $(PREFIX):$(TAG) clean: docker rmi -f $(PREFIX):$(TAG) || true