Artifact Content
Not logged in

Artifact 737f153f55c0ca09023cbb5928cf924f0d377e71:


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