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}"'
- /^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