This commit is contained in:
parent
57e958357a
commit
add6f902dc
@ -19,16 +19,10 @@ clone:
|
||||
|
||||
pipeline:
|
||||
check-tag:
|
||||
image: code.balsillie.net/containers/debian:11-slim-bash
|
||||
image: debian:11-slim
|
||||
pull: false
|
||||
commands:
|
||||
- if [[ $TAG =~ ^v1\...\..rc.$ ]]; then
|
||||
echo "Tag ${TAG} appears to be a release candidate, terminating build." && 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." && exit 1
|
||||
fi
|
||||
- /bin/bash check-tag.sh
|
||||
clone-source:
|
||||
image: docker:git
|
||||
commands:
|
||||
|
11
check-tag.sh
Executable file
11
check-tag.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
if [[ $TAG =~ ^v1\...\..rc.$ ]]; then
|
||||
echo "Tag ${TAG} appears to be a release candidate, terminating build."
|
||||
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."
|
||||
exit 1
|
||||
fi
|
Loading…
Reference in New Issue
Block a user