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
Ashok Bommisetti 263acda90b Dockerfile & Makefile argument name mismatch (#232)
Dockerfile expects the argument to be `SENTRY_IMAGE`. So, modifying Makefile to enable `make build`
2019-07-29 17:55:35 +03:00

22 lines
548 B
Makefile

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