From aa5c9bceadab341d03ff9d24bf28bb464c4d3369 Mon Sep 17 00:00:00 2001 From: Ismail Ahmad <ismailahmad@ismailscbookpro.lan> Date: Fri, 15 Jan 2021 23:12:00 -0500 Subject: [PATCH] chore: testing tf_var change --- .gitlab-ci.yml | 2 ++ .gitlab-ci/templates.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c1b62398e4..4ec638e2f6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -71,6 +71,8 @@ pre vars: - if (( ${DIFF_ARR[1]} > 0 )); then CHART_BREAKING_CHANGE="true"; fi # store variables - echo "CHART_BREAKING_CHANGE=$CHART_BREAKING_CHANGE" >> variables.env + # Create the TF_VAR_env variable + - echo "TF_VAR_env=$(echo $CI_COMMIT_REF_SLUG | cut -c 1-7)-$(echo $CI_COMMIT_SHA | cut -c 1-7)" - cat variables.env #----------------------------------------------------------------------------------------------------------------------- diff --git a/.gitlab-ci/templates.yml b/.gitlab-ci/templates.yml index e2f1e65619..c4c7ad631f 100644 --- a/.gitlab-ci/templates.yml +++ b/.gitlab-ci/templates.yml @@ -17,9 +17,9 @@ include: interruptible: false variables: TF_IN_AUTOMATION: "1" - TF_VAR_env: $(echo "${CI_COMMIT_REF_SLUG}"| cut -c 1-7)-$(echo "${CI_COMMIT_SHA}" | cut -c 1-7) before_script: # Shorten the env name down to 15 characters + - echo "$TF_VAR_env" - cd ${CI_PROJECT_DIR}/${TF_ROOT} - terraform version - terraform init -input=false -- GitLab