This commit is contained in:
parent
57e958357a
commit
add6f902dc
@ -19,16 +19,10 @@ clone:
|
|||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
check-tag:
|
check-tag:
|
||||||
image: code.balsillie.net/containers/debian:11-slim-bash
|
image: debian:11-slim
|
||||||
pull: false
|
pull: false
|
||||||
commands:
|
commands:
|
||||||
- if [[ $TAG =~ ^v1\...\..rc.$ ]]; then
|
- /bin/bash check-tag.sh
|
||||||
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
|
|
||||||
clone-source:
|
clone-source:
|
||||||
image: docker:git
|
image: docker:git
|
||||||
commands:
|
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