This commit is contained in:
parent
115ccf72f9
commit
05127d7306
@ -22,18 +22,15 @@ pipeline:
|
|||||||
image: debian:11-slim
|
image: debian:11-slim
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- if [[ $TAG =~ ^v1\...\..rc.$ ]] \
|
- if [[ $TAG =~ ^v1\...\..rc.$ ]]
|
||||||
then \
|
- then
|
||||||
echo "Tag ${TAG} appears to be a release candidate, terminating build." && \
|
- echo "Tag ${TAG} appears to be a release candidate, terminating build." && exit 1
|
||||||
exit 1 \
|
- elif [[ $TAG =~ ^v1\...\..$ ]]
|
||||||
elif [[ $TAG =~ ^v1\...\..$ ]] \
|
- then
|
||||||
then \
|
- echo "Tag ${TAG} appears to be a release tag, proceeding." && exit 0
|
||||||
echo "Tag ${TAG} appears to be a release tag, proceeding." && \
|
- else
|
||||||
exit 0 \
|
- echo "Unable to determine nature of tag, terminating build." && exit 1
|
||||||
else \
|
- fi
|
||||||
echo "Unable to determine nature of tag, terminating build." && \
|
|
||||||
exit 1 \
|
|
||||||
fi
|
|
||||||
clone-source:
|
clone-source:
|
||||||
image: docker:git
|
image: docker:git
|
||||||
commands:
|
commands:
|
||||||
|
Loading…
Reference in New Issue
Block a user