From 0ac9a6ef9a0a0cb0cdfa78c35d3b6a2e674ac490 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 24 Jun 2020 09:56:42 +0200 Subject: [PATCH] Minor change to .gitlab-ci.yml --- .gitlab-ci.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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 -- 2.39.5