Files
matrix-service-synapse/check-tag.sh

13 lines
417 B
Bash
Raw Permalink Normal View History

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