File tree Expand file tree Collapse file tree 6 files changed +10
-179
lines changed
Expand file tree Collapse file tree 6 files changed +10
-179
lines changed Original file line number Diff line number Diff line change 22
33set -e
44
5- # Get the versions to build
6-
7- # If they are passed as args
8- if [ $# -gt 0 ]; then
9- buildDirs=" $@ "
10- else
11- # else, get all the relevant dirs
12- buildDirs=$( ls | grep -E ' ^php[0-9\.]+$' )
13- fi
14-
15- # Build each one of them
16- for version in $buildDirs ; do
17- pushd $version
18- docker build -t outrigger/cli:2-${version} .
19- popd
5+ CLI_VERSION=" 2.10"
6+ for tag in {" php7.2" " php7.3" }; do
7+ docker build \
8+ --build-arg CLI_VERSION=" ${CLI_VERSION} -${tag} " \
9+ -t outrigger/cli:${CLI_VERSION} -${tag} \
10+ .
2011done
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- echo " In build"
43printenv
5- echo " Cur dir"
6- pwd
74
5+ echo " Building $DOCKER_TAG "
86docker build --build-arg CLI_VERSION=$DOCKER_TAG -f $DOCKERFILE_PATH -t $IMAGE_NAME .
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- echo " Post Push"
4- printenv
5-
6- shortVersion=${SOURCE_BRANCH% .* -php* }
7- phpVersion=${SOURCE_BRANCH#* -}
3+ shortVersion=${DOCKER_TAG% .* -php* }
4+ phpVersion=${DOCKER_TAG#* -}
85tag=" ${shortVersion} -${phpVersion} "
96
7+ echo " Tagging with ${tag} "
108docker tag $IMAGE_NAME $DOCKER_REPO :${tag}
119docker push $DOCKER_REPO :${tag}
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments