Skip to content

Commit ccabb9b

Browse files
committed
MASTER :: NOTICKET :: Alternate build.sh
1 parent b6ea86c commit ccabb9b

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

build.sh

100644100755
Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,16 @@
22

33
set -e
44

5-
CLI_VERSION="2.10"
6-
for tag in {"php7.2"}; do
5+
# Arguments: $1 tag, $2 CLI_VERSION
6+
build() {
77
docker build \
8-
--build-arg CLI_VERSION="${CLI_VERSION}-${tag}" \
9-
-t outrigger/cli:${CLI_VERSION}-${tag} \
8+
--build-arg CLI_VERSION="${2}-${1}" \
9+
-t outrigger/cli:"${2}-${1}" \
1010
.
11-
done
11+
}
1212

13-
CLI_VERSION="2.12"
14-
for tag in {"php7.3" "php7.4"}; do
15-
docker build \
16-
--build-arg CLI_VERSION="${CLI_VERSION}-${tag}" \
17-
-t outrigger/cli:${CLI_VERSION}-${tag} \
18-
.
13+
build "php7.2" "2.10"
14+
15+
for tag in "php7.3" "php7.4"; do
16+
build $tag "2.12"
1917
done

0 commit comments

Comments
 (0)