2
0
This repository has been archived on 2020-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
sentry-onpremise/Makefile

22 lines
509 B
Makefile
Raw Normal View History

2016-06-03 23:51:55 +02:00
REPOSITORY?=sentry-onpremise
TAG?=latest
2016-02-11 22:52:19 +01:00
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) .
2016-02-11 22:52:19 +01:00
$(REPOSITORY)_$(TAG).tar: build
@echo -e "$(OK_COLOR)==>$(NO_COLOR) Saving $(REPOSITORY):$(TAG) > $@"
2016-02-11 22:52:19 +01:00
@docker save $(REPOSITORY):$(TAG) > $@
push: build
@echo -e "$(OK_COLOR)==>$(NO_COLOR) Pushing $(REPOSITORY):$(TAG)"
2016-06-03 23:51:55 +02:00
@docker push $(REPOSITORY):$(TAG)
all: build push
2016-02-11 22:52:19 +01:00
2016-06-03 23:51:55 +02:00
.PHONY: all build push