af2d805f32
closes #214 Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
22 lines
509 B
Makefile
22 lines
509 B
Makefile
REPOSITORY?=sentry-onpremise
|
|
TAG?=latest
|
|
|
|
OK_COLOR=\033[32;01m
|
|
NO_COLOR=\033[0m
|
|
|
|
build:
|
|
@echo -e "$(OK_COLOR)==>$(NO_COLOR) Building $(REPOSITORY):$(TAG)"
|
|
@docker build --pull --rm -t $(REPOSITORY):$(TAG) .
|
|
|
|
$(REPOSITORY)_$(TAG).tar: build
|
|
@echo -e "$(OK_COLOR)==>$(NO_COLOR) Saving $(REPOSITORY):$(TAG) > $@"
|
|
@docker save $(REPOSITORY):$(TAG) > $@
|
|
|
|
push: build
|
|
@echo -e "$(OK_COLOR)==>$(NO_COLOR) Pushing $(REPOSITORY):$(TAG)"
|
|
@docker push $(REPOSITORY):$(TAG)
|
|
|
|
all: build push
|
|
|
|
.PHONY: all build push
|