forked from DODAS-TS/dodas-docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (31 loc) · 937 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
VERSION?=latest
DOCBIN?=mkdocs
OWNER?=dodasts
PREFIX:= build/
IMAGES:= centos7_grid \
cachingondemand/xrootd-escape-http \
cachingondemand/xcache-escape-http \
cachingondemand/xrootd-escape-xrd \
cachingondemand/xcache-escape-xrd \
htcondor/htcondor \
htcondor/cms \
htcondor/ams \
htcondor/fermi \
jupyter-hub \
spark
.PHONY: init build push publish-doc
all: build-all
help:
@echo "Available commands:\n"
@echo "- publish-doc : "
publish-doc:
cp README.md docs/README.md
$(DOCBIN) gh-deploy
build/%: DARGS?=
build/%:
./scripts/travis-build.sh $(OWNER)/$(notdir docker/$@):${VERSION} docker/$(strip $(subst $(PREFIX), ,$@))
build-all: $(foreach I,$(IMAGES),build/$(I) )
push/%: DARGS?=
push/%:
./scripts/travis-publish.sh $(OWNER)/$(notdir docker/$@) $(OWNER)/$(notdir docker/$@):$(VERSION) docker/$(strip $(subst $(PREFIX), ,$@))
push-all: $(foreach I,$(IMAGES),push/$(I) )