-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker_hb.sh
executable file
·41 lines (33 loc) · 1.25 KB
/
docker_hb.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
#!/bin/bash
# © 2019 Konopnickiej.Com - Paweł 'felixd' Wojciechowski
REPO="elmarit/harbour"
TAG_LATEST="hb_34_latest"
HARBOURS=()
for DIR in *; do
if [ -d "${DIR}" ]; then
case "$DIR" in
hb_* ) HARBOURS+=($DIR) ;;
esac
fi
done
echo "+-------------------------------------------------------------------+"
docker version
echo "+-------------------------------------------------------------------+"
echo " *** Building Harbour Projects *** "
echo "+-------------------------------------------------------------------+"
echo " *** Harbours: ${HARBOURS[@]}"
echo "+-------------------------------------------------------------------+"
# HARBOURS
# Those Dockerfiles have to be rebuilt everytime. We do not know if remote Git repo has changed or not.
for TAG in ${HARBOURS[@]}; do
echo "+-------------------------------------------------------------------+"
echo " *** Building TAG: :$TAG *** "
echo "+-------------------------------------------------------------------+"
docker build -t $REPO:$TAG $TAG/
done
docker tag $REPO:$TAG_LATEST $REPO:latest
docker tag $REPO:hb_34_latest $REPO:3
docker tag $REPO:hb_34_latest $REPO:3.4
docker tag $REPO:hb_34_latest $REPO:3.4.0
docker tag $REPO:hb_34_latest $REPO:3.4.0dev
docker tag $REPO:hb_32_latest $REPO:3.2