Merge branch 'feature/KASM-5423-schedule-names' into 'develop'

KASM-5423 add name tags to scheduled builds

See merge request kasm-technologies/internal/workspaces-core-images!167
This commit is contained in:
Justin Travis 2024-02-05 14:23:51 +00:00
commit 13c85726b2

View File

@ -21,7 +21,11 @@ fi
# Determine if this is a rolling build
if [ "${CI_PIPELINE_SOURCE}" == "schedule" ]; then
if [ -z ${SCHEDULE_NAME+x} ]; then
SANITIZED_BRANCH=${SANITIZED_BRANCH}-rolling
else
SANITIZED_BRANCH=${SANITIZED_BRANCH}-rolling-${SCHEDULE_NAME}
fi
fi
# Determine if we are doing a reversion
@ -29,7 +33,11 @@ if [ ! -z "${REVERT_PIPELINE_ID}" ]; then
# If we are reverting modify the pipeline ID to the one passed
CI_PIPELINE_ID=${REVERT_PIPELINE_ID}
if [ "${IS_ROLLING}" == "true" ]; then
if [ -z ${SCHEDULE_NAME+x} ]; then
SANITIZED_BRANCH=${SANITIZED_BRANCH}-rolling
else
SANITIZED_BRANCH=${SANITIZED_BRANCH}-rolling-${SCHEDULE_NAME}
fi
fi
fi