Skip to content

Commit

Permalink
Add PUSH_TOOL to ubuntu Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
bprashanth committed Feb 17, 2017
1 parent 477c1ba commit bb48963
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion images/ubuntu-slim/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand All @@ -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
Expand Down

0 comments on commit bb48963

Please sign in to comment.