-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
24 lines (18 loc) · 824 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
LUNA=6.2
PYELEVENSRC=git+https://github.com/IdentityPython/pyeleven.git\#egg=pyeleven
PYELEVEN=dev
NAME=luna-client
VERSION=$(LUNA)-$(PYELEVEN)
all: build push
dist:
$(MAKE) LUNA=6.2 PYELEVENSRC=git+https://github.com/IdentityPython/pyeleven.git\#egg=pyeleven PYELEVEN="dev"
$(MAKE) LUNA=7.2 PYELEVENSRC=git+https://github.com/IdentityPython/pyeleven.git\#egg=pyeleven PYELEVEN="dev"
$(MAKE) LUNA=7.4 PYELEVENSRC=git+https://github.com/IdentityPython/pyeleven.git\#egg=pyeleven PYELEVEN="dev"
.PHONY: Dockerfile
Dockerfile: Dockerfile.in
env LUNA=$(LUNA) PYELEVENSRC=$(PYELEVENSRC) PYELEVEN=$(PYELEVEN) envsubst < $< > $@
build: Dockerfile
docker build --no-cache=true -t $(NAME):$(VERSION) .
docker tag $(NAME):$(VERSION) docker.sunet.se/$(NAME):$(VERSION)
push:
docker push docker.sunet.se/$(NAME):$(VERSION)