Skip to content

Commit edeec8f

Browse files
authored
Merge pull request #2 from scottalan/feature/php74-tag
MASTER :: NOTICKET :: Update Dockerfile to use docksal/cli:2.12-php7.4
2 parents c307a80 + ccabb9b commit edeec8f

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
ARG CLI_VERSION=2.10-php7.3
1+
ARG CLI_VERSION=2.12-php7.4
2+
23
# Extend the Docksal CLI per https://docs.docksal.io/stack/extend-images/
34
FROM docksal/cli:${CLI_VERSION}
45

build.sh

100644100755
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22

33
set -e
44

5-
CLI_VERSION="2.10"
6-
for tag in {"php7.2" "php7.3"}; 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+
}
12+
13+
build "php7.2" "2.10"
14+
15+
for tag in "php7.3" "php7.4"; do
16+
build $tag "2.12"
1117
done

0 commit comments

Comments
 (0)