accidently checked for SCHEDULE_CADENCE to be empty

This commit is contained in:
Marcel Märtens 2022-04-28 12:03:58 +02:00
parent a45791dda5
commit 6aa4d664fc

View File

@ -12,7 +12,7 @@ if [[ "${CI_COMMIT_TAG}" =~ ${TAG_REGEX} ]]; then
export PUBLISH_DOCKER_TAG="${CI_COMMIT_TAG}";
return 0;
fi
if [[ -z "${SCHEDULE_CADENCE}" && ${CI_PIPELINE_SOURCE} == "schedule" ]]; then
if [[ "${SCHEDULE_CADENCE}" != "" && ${CI_PIPELINE_SOURCE} == "schedule" ]]; then
# sanitize check
if [[ "${SCHEDULE_CADENCE}" =~ ${TAG_REGEX} ]]; then
export PUBLISH_DOCKER_TAG="invalid_cadence";