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

View File

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