From: Frank Brehm Date: Wed, 24 Jun 2020 07:56:42 +0000 (+0200) Subject: Minor change to .gitlab-ci.yml X-Git-Tag: 2.1.2^2~9^2~9 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=0ac9a6ef9a0a0cb0cdfa78c35d3b6a2e674ac490;p=pixelpark%2Fcreate-vmware-tpl.git Minor change to .gitlab-ci.yml --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9929b13..8f144fb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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