-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sh
56 lines (38 loc) · 1.17 KB
/
build.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
#!/bin/bash
set -euo pipefail
#export DEBUG=true
# Define RELEASE_FOLDER
pushd $(dirname $0)
BUILD_FOLDER=$PWD
ALL_RELEASES_FOLDER=${BUILD_FOLDER}/releases
popd
# Release Build of the Docker Image
# Final Docker Image Name
export IMAGE_BUILD="r1"
export DOCKER_REPO=konvergence/duplicity
#RELEASE_FOLDER=$1
#----------------------------------------------------------------------------------------------------------
# ask release is needed
#----------------------------------------------------------------------------------------------------------
#if [ -z "${RELEASE_FOLDER}" ]; then
# echo available releases folder :
# ls ${ALL_RELEASES_FOLDER}
# read -p "release folder:" RELEASE_FOLDER
#fi
export PG_VERSION=""
export MYSQL_VERSION=""
echo "Building filesystem image"
./buildDockerImage.sh
PG_VERSIONS="12 14 15 16"
for PG_VERSION in ${PG_VERSIONS}; do
export PG_VERSION
echo "Building postgresql image with PG_VERSION=$PG_VERSION"
./buildDockerImage.sh
done
export PG_VERSION=""
MYSQL_VERSIONS="8.0"
for MYSQL_VERSION in ${MYSQL_VERSIONS}; do
export MYSQL_VERSION
echo "Building mysql image with MYSQL_VERSION=$MYSQL_VERSION"
./buildDockerImage.sh
done