]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Minor change to .gitlab-ci.yml
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 24 Jun 2020 07:56:42 +0000 (09:56 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 24 Jun 2020 07:56:42 +0000 (09:56 +0200)
.gitlab-ci.yml

index 9929b1364e69f04522b2ad94ee9a3e7557f65bf8..8f144fbeb5966deee8b57393469b41fa91a9fa80 100644 (file)
@@ -71,6 +71,14 @@ variables:
   tags:
     - deploy
   after_script:
+    - ' if [ "$CI_COMMIT_REF_NAME" = "master" -o "$CI_COMMIT_REF_NAME" = "production" ] ; then
+            SYSTEM_STATUS="production";
+        elif [ "$CI_COMMIT_REF_NAME" = "test" -o "$CI_COMMIT_REF_NAME" = "testing" ] ; then
+            SYSTEM_STATUS="testing";
+        else
+            SYSTEM_STATUS="development";
+        fi'
+    - 'CONFIG_FILE=etc/create-${OS_ID}-${SYSTEM_STATUS}.ini'
     - 'ls -l "${CONFIG_FILE}" || true'
     - 'rm -fv "${CONFIG_FILE}"'
 
@@ -130,10 +138,6 @@ Create Centos8 template:
     - /^dev\/.*$/
     - /^hf.*$/
     - tags
-  after_script:
-    - 'CONFIG_FILE=etc/create-${OS_ID}-${SYSTEM_STATUS}.ini'
-    - 'ls -l "${CONFIG_FILE}" || true'
-    - 'rm -fv "${CONFIG_FILE}"'
 
 #Deploy OEL7 template image:
 #  <<: *job_definition