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
2016-06-03 14:54:36 -07:00

22 lines
493 B
Makefile

REPOSITORY?=sentry-onpremise
TAG?=latest
OK_COLOR=\033[32;01m
NO_COLOR=\033[0m
build:
@echo "$(OK_COLOR)==>$(NO_COLOR) Building $(REPOSITORY):$(TAG)"
@docker build --rm -t $(REPOSITORY):$(TAG) .
$(REPOSITORY)_$(TAG).tar: build
@echo "$(OK_COLOR)==>$(NO_COLOR) Saving $(REPOSITORY):$(TAG) > $@"
@docker save $(REPOSITORY):$(TAG) > $@
push: build
@echo "$(OK_COLOR)==>$(NO_COLOR) Pushing $(REPOSITORY):$(TAG)"
@docker push $(REPOSITORY):$(TAG)
all: build push
.PHONY: all build push