From e31991efc8671c3c38bad54fd1a7a8d5f270bdf2 Mon Sep 17 00:00:00 2001 From: Lee Brown Date: Sun, 14 Jul 2019 13:05:03 -0800 Subject: [PATCH] gitlab ci fix empty env name --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c70cb80..7f6ae01 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -98,8 +98,7 @@ cache: <<: *deploy_dev_tmpl tags: - dev - variables: - name: 'dev/${SERVICE}-dev' + variables: TARGET_ENV: 'dev' SERVICE: 'web-api' ENABLE_HTTPS: 1 @@ -115,6 +114,7 @@ webapi:build:dev: <<: *deploy_dev_webapi_tmpl stage: build:dev environment: + name: '${TARGET_ENV}/${SERVICE}-${TARGET_ENV}' NO_BUILD: 'false' only: - master @@ -124,6 +124,7 @@ webapi:deploy:dev: <<: *deploy_dev_webapi_tmpl stage: deploy:dev environment: + name: '${TARGET_ENV}/${SERVICE}-${TARGET_ENV}' NO_DEPLOY: 'false' dependencies: - 'webapi:build:dev'