use CI build config set to update PHP_VERSION in .env

This commit is contained in:
Shao Yu Lung 2017-05-03 18:56:01 +08:00
parent 5a5dceb967
commit bedb663a8e
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