matrix-service-synapse/check-tag.sh

13 lines
417 B
Bash
Raw Normal View History

2022-08-21 07:19:54 -04:00
#!/bin/bash
if [[ $TAG =~ ^v1\...\..rc.$ ]]; then
echo "Tag ${TAG} appears to be a release candidate, terminating build."
2022-08-21 20:50:16 -04:00
echo " Tag is an RC." > /git/pipeline/reason
2022-08-21 07:19:54 -04:00
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."
2022-08-21 20:50:16 -04:00
echo " Cannot parse tag." > /git/pipeline/reason
2022-08-21 07:19:54 -04:00
exit 1
fi