fix(Makefile): push to gcr using gcloud

pull/771/head
Adam Reese 9 years ago
parent 0214576069
commit 582b1883e3

@ -15,8 +15,16 @@ docker-push: docker-mutable-push docker-immutable-push
.PHONY: docker-immutable-push .PHONY: docker-immutable-push
docker-immutable-push: docker-immutable-push:
ifeq ($(DOCKER_REGISTRY),gcr.io)
gcloud docker push ${IMAGE}
else
docker push ${IMAGE} docker push ${IMAGE}
endif
.PHONY: docker-mutable-push .PHONY: docker-mutable-push
docker-mutable-push: docker-mutable-push:
ifeq ($(DOCKER_REGISTRY),gcr.io)
gcloud docker push ${MUTABLE_IMAGE}
else
docker push ${MUTABLE_IMAGE} docker push ${MUTABLE_IMAGE}
endif

Loading…
Cancel
Save