fix: update version handling in gitlab-ci configuration #80

Merged
argoyle merged 1 commits from fix/version-handling-ci-configuration into main 2025-09-11 11:22:41 +00:00
+5 -1
View File
@@ -244,7 +244,11 @@ unbound_release_tag:
- 'apk add --no-cache git jq curl'
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 '')"
if [[ -n "${LATEST}" && "${VERSION}" == "${LATEST}" ]]; then
echo "Version ${VERSION} already exists"