forked from seibert-media/docker-atlassian-jira-servicedesk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
20 lines (14 loc) · 538 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
ATLASSIAN_VERSION ?= $(VERSION)
REGISTRY ?= docker.seibert-media.net
default: build
all: build upload clean
clean: checkvars
docker rmi $(REGISTRY)/seibertmedia/atlassian-jira-servicedesk:$(VERSION)
build: checkvars
docker build --no-cache --rm=true --build-arg VERSION=$(ATLASSIAN_VERSION) -t $(REGISTRY)/seibertmedia/atlassian-jira-servicedesk:$(VERSION) .
upload: checkvars
docker push $(REGISTRY)/seibertmedia/atlassian-jira-servicedesk:$(VERSION)
checkvars:
ifndef VERSION
$(error env variable VERSION has to be set)
endif