forked from brettt89/silverstripe-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·23 lines (20 loc) · 856 Bytes
/
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
#!/bin/bash
declare -a platforms=("alpine" "platform")
declare -a phpVersions=("7.1" "5.6")
for platform in "${platforms[@]}"
do
for version in "${phpVersions[@]}"
do
echo "### Building brettt89/silverstripe-web:${version}-${platform} ###"
docker build -t "brettt89/silverstripe-web:${version}-${platform}" "${version}/${platform}"
if [ "${platform}" == "platform" ]
then
docker tag "brettt89/silverstripe-web:${version}-${platform}" "brettt89/silverstripe-web:${version}-ssp"
fi
done
echo "### Building brettt89/silverstripe-web:${platform}"
docker build -t "brettt89/silverstripe-web:${platform}" "5.6/${platform}"
done
## Force 5.6/platform to be latest build
echo "### Building brettt89/silverstripe-web:latest"
docker build -t "brettt89/silverstripe-web:latest" "5.6/platform"