Merge pull request #297 from bprashanth/ubuntu_makefile

Add PUSH_TOOL to ubuntu Makefile
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-02-17 15:46:14 -03:00 committed by GitHub
commit f0c7560a11

View file

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