From 542495f17786df3415cda63ec81976c7afc897bb Mon Sep 17 00:00:00 2001
From: Ismail Ahmad <ismailahmad@ismailscbookpro.lan>
Date: Fri, 15 Jan 2021 22:47:54 -0500
Subject: [PATCH] fix(gitlab-ci): testing a tf_var change

---
 .gitignore               | 6 ++++++
 .gitlab-ci/templates.yml | 3 +--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore
index 701774ef41..98fcbf979a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,12 @@ certs/
 
 .DS_Store
 
+.terraform
+*.pem
+*rke2.yaml
+
+*tfstate*
+
 # dependencies
 /node_modules
 
diff --git a/.gitlab-ci/templates.yml b/.gitlab-ci/templates.yml
index fa508e9145..e2f1e65619 100644
--- a/.gitlab-ci/templates.yml
+++ b/.gitlab-ci/templates.yml
@@ -17,10 +17,9 @@ include:
   interruptible: false
   variables:
     TF_IN_AUTOMATION: "1"
-    TF_VAR_env: ${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA}
+    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
-    - export TF_VAR_env=$(echo "${CI_COMMIT_REF_SLUG}"| cut -c 1-7)-$(echo "${CI_COMMIT_SHA}" | cut -c 1-7)
     - cd ${CI_PROJECT_DIR}/${TF_ROOT}
     - terraform version
     - terraform init -input=false
-- 
GitLab