Skip to content

Commit 4910625

Browse files
committed
Reading DOCKER_TAG in build to split the builds by PHP version
1 parent e3a518e commit 4910625

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

build/hooks/build

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/usr/bin/env bash
22

3+
if [[ -v DOCKER_TAG ]]; then
4+
if [[ "5.5 5.6 7.0 7.1 7.2" == *"$DOCKER_TAG"* ]]; then
5+
PHP_VERSIONS=$DOCKER_TAG
6+
fi
7+
fi
8+
39
for php_version in $PHP_VERSIONS; do
410
xdebug_version=
511
if [ "$php_version" == "5.5" ] || [ "$php_version" == "5.6" ]; then

build/hooks/post_push

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/usr/bin/env bash
22

3+
if [[ -v DOCKER_TAG ]]; then
4+
if [[ "5.5 5.6 7.0 7.1 7.2" == *"$DOCKER_TAG"* ]]; then
5+
PHP_VERSIONS=$DOCKER_TAG
6+
fi
7+
fi
8+
39
for php_version in $PHP_VERSIONS; do
410
for php_variant in $PHP_VARIANTS; do
511
image_name=jestefane/php-dev:$php_version-$php_variant-$SOURCE_BRANCH

0 commit comments

Comments
 (0)