matrix-service-synapse/check-tag.sh
Michael Balsillie 7f40b2d086
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
add reason to fialure message
2022-08-22 12:50:16 +12:00

13 lines
417 B
Bash
Executable File

#!/bin/bash
if [[ $TAG =~ ^v1\...\..rc.$ ]]; then
echo "Tag ${TAG} appears to be a release candidate, terminating build."
echo " Tag is an RC." > /git/pipeline/reason
exit 1
elif [[ $TAG =~ ^v1\...\..$ ]]; then
echo "Tag ${TAG} appears to be a release tag, proceeding."
exit 0
else
echo "Unable to determine nature of tag, terminating build."
echo " Cannot parse tag." > /git/pipeline/reason
exit 1
fi