-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
28 lines (19 loc) · 848 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
include include/version.inc
# targets1 are all prefixed with the namespace/chaperone-
targets1=baseimage apache lamp lemp alpinebase alpinejava centosbase
# targets2 are just prefixed with namespace/
targets2=alpine-nginx-php alpine-nginx-django nginx-django
TARGETS=$(targets1) $(targets2)
DHREPOS=$(foreach name,$(targets1),$(IMAGE_NAMESPACE)/chaperone-$(name)) \
$(foreach name,$(targets2),$(IMAGE_NAMESPACE)/$(name))
SHELL=/bin/bash
.PHONY: all build rebuild clean push push-only test
all build rebuild test:
for sf in $(TARGETS); do (cd $$sf; $(MAKE) $@) || break; done
clean:
for sf in $(TARGETS); do (cd $$sf; $(MAKE) $@) || break; done
rm -rf `find . -name '*~'` `find . -name '_temp_' -type d` test_logs
push: test
for sf in $(DHREPOS); do docker push $$sf; done
push-only:
for sf in $(DHREPOS); do docker push $$sf; done