File tree Expand file tree Collapse file tree 3 files changed +8
-17
lines changed
Expand file tree Collapse file tree 3 files changed +8
-17
lines changed Original file line number Diff line number Diff line change 1- ARG CLI_VERSION=2.10
2- ARG PHP_VERSION=php7.3
1+ ARG CLI_VERSION=2.10-php7.3
32# Extend the Docksal CLI per https://docs.docksal.io/stack/extend-images/
4- FROM docksal/cli:${CLI_VERSION}-${PHP_VERSION}
3+ FROM docksal/cli:${CLI_VERSION}
54
65# Puppeteer dependencies taken from https://github.com/alekzonder/docker-puppeteer
76# Install addtional apt packages needed for pa11y and puppeteer
Original file line number Diff line number Diff line change @@ -5,10 +5,4 @@ printenv
55echo " Cur dir"
66pwd
77
8- cliVersion=" $SOURCE_BRANCH "
9- phpVersions=" $DOCKERFILE_PATH "
10- # docker build \
11- # --build-arg CLI_VERSION=${cliVersion} \
12- # --build-arg PHP_VERSION=${phpVersion} \
13- # -t $IMAGE_NAME \
14- # .
8+ docker build --build-arg CLI_VERSION=$DOCKER_TAG -f $DOCKERFILE_PATH -t $IMAGE_NAME .
Original file line number Diff line number Diff line change 33echo " Post Push"
44printenv
55
6- # Parse image name for repo name
7- tagStart=$( expr index " $IMAGE_NAME " :)
8- repoName=${IMAGE_NAME: 0: tagStart-1}
9- tag=" test"
6+ shortVersion=${SOURCE_BRANCH% .* -php* }
7+ phpVersion=${SOURCE_BRANCH#* -}
8+ tag=" ${shortVersion} -${phpVersion} "
109
11- echo " repoName: $repoName "
12- echo docker tag $IMAGE_NAME ${repoName} :${tag}
13- echo docker push ${repoName} :${tag}
10+ docker tag $IMAGE_NAME $DOCKER_REPO :${tag}
11+ docker push $DOCKER_REPO :${tag}
You can’t perform that action at this time.
0 commit comments