parent
b2080c1446
commit
d54c1a8d6c
21
Makefile
21
Makefile
@ -1,21 +0,0 @@
|
||||
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
|
Reference in New Issue
Block a user