-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 758 Bytes
/
Makefile
File metadata and controls
27 lines (22 loc) · 758 Bytes
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
NAME = baselibrary/python
REPO = git@github.com:baselibrary/docker-python.git
REGISTRY = thoughtworks.io
VERSIONS = $(foreach df,$(wildcard */Dockerfile),$(df:%/Dockerfile=%))
all: build
build: $(VERSIONS)
@for version in $(VERSIONS); do \
docker build --rm --tag=$(NAME):$$version $$version; \
done
push: $(VERSIONS)
@for version in $(VERSIONS); do \
docker tag -f ${NAME}:$$version ${REGISTRY}/${NAME}:$$version; \
docker push ${REGISTRY}/${NAME}:$$version; \
docker rmi -f ${REGISTRY}/${NAME}:$$version; \
done
clean: $(VERSIONS)
@for version in $(VERSIONS); do \
docker rmi -f ${NAME}:$$version; \
docker rmi -f ${REGISTRY}/${NAME}:$$version; \
done
update:
docker run --rm -v $$(pwd):/work -w /work buildpack-deps ./update.sh