2
0

Support overriding vars in Makefile

This commit is contained in:
Matt Robenolt 2016-06-03 14:51:55 -07:00
parent ad1ce6eb81
commit 5d8b64be0c

View File

@ -1,5 +1,5 @@
REPOSITORY=sentry-onpremise
TAG=latest
REPOSITORY?=sentry-onpremise
TAG?=latest
OK_COLOR=\033[32;01m
NO_COLOR=\033[0m
@ -12,6 +12,10 @@ $(REPOSITORY)_$(TAG).tar: build
@echo "$(OK_COLOR)==>$(NO_COLOR) Saving $(REPOSITORY):$(TAG) > $@"
@docker save $(REPOSITORY):$(TAG) > $@
push:
@echo "$(OK_COLOR)==>$(NO_COLOR) Pushing $(REPOSITORY):$(TAG)"
@docker push $(REPOSITORY):$(TAG)
all: build $(REPOSITORY)_$(TAG).tar
.PHONY: build all
.PHONY: all build push