We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6ea86c commit ccabb9bCopy full SHA for ccabb9b
1 file changed
build.sh
100644
100755
@@ -2,18 +2,16 @@
2
3
set -e
4
5
-CLI_VERSION="2.10"
6
-for tag in {"php7.2"}; do
+# Arguments: $1 tag, $2 CLI_VERSION
+build() {
7
docker build \
8
- --build-arg CLI_VERSION="${CLI_VERSION}-${tag}" \
9
- -t outrigger/cli:${CLI_VERSION}-${tag} \
+ --build-arg CLI_VERSION="${2}-${1}" \
+ -t outrigger/cli:"${2}-${1}" \
10
.
11
-done
+}
12
13
-CLI_VERSION="2.12"
14
-for tag in {"php7.3" "php7.4"}; do
15
- docker build \
16
17
18
- .
+build "php7.2" "2.10"
+
+for tag in "php7.3" "php7.4"; do
+ build $tag "2.12"
19
done
0 commit comments