-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.sh
executable file
·29 lines (22 loc) · 1.8 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
#!/usr/bin/env bash
set -e
if [ "$1" == "" ]; then
echo "Example usage: ./test-build.sh 1.0.3"
exit 1
fi
echo "────────────────────────────────────────────────────"
echo " Building image for eaudeweb/php-fpm:5.6-$1"
echo "────────────────────────────────────────────────────"
docker build --rm -t eaudeweb/php-fpm:5.6-$1 ./5.6/
echo "────────────────────────────────────────────────────"
echo " Building image for eaudeweb/php-fpm:7.1-$1"
echo "────────────────────────────────────────────────────"
docker build --rm -t eaudeweb/php-fpm:7.1-$1 ./7.1/
echo "────────────────────────────────────────────────────"
echo " Building image for eaudeweb/php-fpm:7.2-$1"
echo "────────────────────────────────────────────────────"
docker build --rm -t eaudeweb/php-fpm:7.2-$1 ./7.2/
echo "────────────────────────────────────────────────────"
echo " Building image for eaudeweb/php-fpm:7.3-$1"
echo "────────────────────────────────────────────────────"
docker build --rm -t eaudeweb/php-fpm:7.3-$1 ./7.3/