Merge pull request #885 from bestlong/ci-env-php-version-forget-change

Fix CI build forget update PHP_VERSION in .env
This commit is contained in:
Winfried 2017-05-03 13:21:18 +02:00 committed by GitHub
commit 207cb2929a
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ set -e
#### Build the Docker Images #### Build the Docker Images
if [ -n "${PHP_VERSION}" ]; then if [ -n "${PHP_VERSION}" ]; then
cp env-example .env cp env-example .env
sed -i -- "s/PHP_VERSION=.*/PHP_VERSION=${PHP_VERSION}/g" .env
sed -i -- 's/=false/=true/g' .env sed -i -- 's/=false/=true/g' .env
cat .env cat .env
docker-compose build docker-compose build