При билде production теперь используется конфиг из ENV переменной [skip ci]

This commit is contained in:
ErickSkrauch 2016-11-23 11:28:06 +03:00
parent 49fb2efc0c
commit fb0dde4abc

View File

@ -37,6 +37,7 @@ build:production:
before_script:
- docker login -u gitlab-ci -p $CI_BUILD_TOKEN registry.ely.by
- echo "$SSH_PRIVATE_KEY" > id_rsa
- echo "$FRONTEND_ENV_CONFIG" > frontend/config/env.js
script:
- export IMAGE_NAME="$CONTAINER_IMAGE:latest"
- docker build --pull -t $IMAGE_NAME .