diff options
| author | mo khan <mo.khan@gmail.com> | 2019-08-22 11:50:34 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2019-08-22 11:50:34 -0600 |
| commit | fa501723ff51d5d0cfd4e345c249d2c0ddc77814 (patch) | |
| tree | c43cbfa29d9d78d24cba28992c6d84ecfeca9a38 /.gitlab-ci.yml | |
| parent | 8e19a8a9e849883e47daa4873d6c992537eaa9e1 (diff) | |
read .env files instead of hardcoding in .gitlab-ci.yml file
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 14584f4..8ce16d4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -49,9 +49,7 @@ container_scanning: - results/ when: always -.legacy-v1-variables: - variables: - DOTENV: "FEATURE_RUBY_REPORT 'false';LM_REPORT_VERSION 1;LM_V1_CANONICALIZE 'false';" +.dotenv: script: - docker info - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY @@ -60,6 +58,11 @@ container_scanning: - ./bin/docker-inject-env - docker push $TARGET_IMAGE +.legacy-v1-variables: + extends: .dotenv + variables: + DOTENV: ".env.legacy" + QA:java-maven: extends: .QA variables: @@ -179,9 +182,7 @@ latest: 12-3-stable: extends: .release variables: - FEATURE_RUBY_REPORT: 'true' - LM_REPORT_VERSION: 1 - LM_V1_CANONICALIZE: 'false' + DOTENV: ".env.legacy" 12-2-stable: extends: .release |
