fix: update version handling in gitlab-ci configuration #80
@@ -244,7 +244,11 @@ unbound_release_tag:
|
|||||||
- 'apk add --no-cache git jq curl'
|
- 'apk add --no-cache git jq curl'
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
VERSION="$(cat VERSION)"
|
if [ ! -r .version ]; then
|
||||||
|
echo "Version file not found"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
VERSION="$(cat .version 2>/dev/null | jq -r '.version')"
|
||||||
LATEST="$(git describe --abbrev=0 --tags 2>/dev/null || echo '')"
|
LATEST="$(git describe --abbrev=0 --tags 2>/dev/null || echo '')"
|
||||||
if [[ -n "${LATEST}" && "${VERSION}" == "${LATEST}" ]]; then
|
if [[ -n "${LATEST}" && "${VERSION}" == "${LATEST}" ]]; then
|
||||||
echo "Version ${VERSION} already exists"
|
echo "Version ${VERSION} already exists"
|
||||||
|
|||||||
Reference in New Issue
Block a user