forked from tum-gis/ckan-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-push-noCache.sh
72 lines (54 loc) · 2.08 KB
/
build-push-noCache.sh
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/env bash
IMAGE_REPOSITORY="${1:-ghcr.io/tum-gis}"
IMAGE_TAG="${2:-devel}"
printf "\n\nIMAGE_REPOSITORY=$IMAGE_REPOSITORY\nIMAGE_TAG=${IMAGE_TAG}\n\n"
# sddi-base ###################################################################
cd sddi-base
# sddi-base:TAG
docker build . \
--no-cache \
-t "$IMAGE_REPOSITORY/ckan-sddi-base:${IMAGE_TAG}"
docker push "$IMAGE_REPOSITORY/ckan-sddi-base:${IMAGE_TAG}"
# sddi-base:TAG-debug
docker build . -f Dockerfile.debug \
--no-cache \
--build-arg "BASEIMAGE_REPOSITORY=$IMAGE_REPOSITORY/ckan-sddi-base" \
--build-arg BASEIMAGE_VERSION=${IMAGE_TAG} \
-t "$IMAGE_REPOSITORY/ckan-sddi-base:${IMAGE_TAG}-debug"
docker push "$IMAGE_REPOSITORY/ckan-sddi-base:${IMAGE_TAG}-debug"
printf "\n\n"
# sddi ########################################################################
cd ../sddi
# sddi:TAG
docker build . \
--no-cache \
--build-arg "BASEIMAGE_REPOSITORY=$IMAGE_REPOSITORY/ckan-sddi-base" \
--build-arg BASEIMAGE_VERSION=${IMAGE_TAG} \
-t "$IMAGE_REPOSITORY/ckan-sddi:${IMAGE_TAG}"
docker push "$IMAGE_REPOSITORY/ckan-sddi:${IMAGE_TAG}"
# sddi:TAG-debug
docker build . \
--no-cache \
--build-arg "BASEIMAGE_REPOSITORY=$IMAGE_REPOSITORY/ckan-sddi-base" \
--build-arg BASEIMAGE_VERSION=${IMAGE_TAG}-debug \
-t "$IMAGE_REPOSITORY/ckan-sddi:${IMAGE_TAG}-debug"
docker push "$IMAGE_REPOSITORY/ckan-sddi:${IMAGE_TAG}-debug"
printf "\n\n"
# sddi-social #################################################################
cd ../sddi-social
# sddi-social:TAG
docker build . \
--no-cache \
--build-arg "BASEIMAGE_REPOSITORY=$IMAGE_REPOSITORY/ckan-sddi" \
--build-arg BASEIMAGE_VERSION=${IMAGE_TAG} \
-t "$IMAGE_REPOSITORY/ckan-sddi-social:${IMAGE_TAG}"
docker push "$IMAGE_REPOSITORY/ckan-sddi-social:${IMAGE_TAG}"
# sddi-social:TAG-debug
docker build . \
--no-cache \
--build-arg "BASEIMAGE_REPOSITORY=$IMAGE_REPOSITORY/ckan-sddi" \
--build-arg BASEIMAGE_VERSION=${IMAGE_TAG}-debug \
-t "$IMAGE_REPOSITORY/ckan-sddi-social:${IMAGE_TAG}-debug"
docker push "$IMAGE_REPOSITORY/ckan-sddi-social:${IMAGE_TAG}-debug"
cd ..
printf "\n\n"