fix up release script to allow for milestone release

pull/80/head
Jody Garnett 2024-08-27 20:54:13 -07:00
parent b3ec943a42
commit 0da9ba557e
1 changed files with 16 additions and 14 deletions

View File

@ -26,16 +26,19 @@ else
BUILD=$3 BUILD=$3
fi fi
if [[ "$VERSION" == *"-RC"* ]]; then if [[ "$VERSION" == *"-M"* ]]; then
# release candidate branch release # release candidate branch release
BRANCH="${VERSION:0:4}-RC" BRANCH="${VERSION}"
TAG=geoserver-docker.osgeo.org/geoserver:$BRANCH TAG=geoserver-docker.osgeo.org/geoserver:$BRANCH
else elif [[ "$VERSION" == *"-RC"* ]]; then
if [[ "${VERSION:0:4}" == "$MAIN" ]]; then # release candidate branch release
BRANCH="${VERSION}"
TAG=geoserver-docker.osgeo.org/geoserver:$BRANCH
elif [[ "${VERSION:0:4}" == "$MAIN" ]]; then
# main branch snapshot release # main branch snapshot release
BRANCH=main BRANCH=main
TAG=geoserver-docker.osgeo.org/geoserver:$MAIN.x TAG=geoserver-docker.osgeo.org/geoserver:$MAIN.x
else else
if [[ "$VERSION" == *"-SNAPSHOT"* ]]; then if [[ "$VERSION" == *"-SNAPSHOT"* ]]; then
# stable or maintenance branch snapshot release # stable or maintenance branch snapshot release
BRANCH="${VERSION:0:4}.x" BRANCH="${VERSION:0:4}.x"
@ -44,7 +47,6 @@ else
BRANCH="${VERSION:0:4}.x" BRANCH="${VERSION:0:4}.x"
TAG=geoserver-docker.osgeo.org/geoserver:$VERSION TAG=geoserver-docker.osgeo.org/geoserver:$VERSION
fi fi
fi
fi fi
echo "Release from branch $BRANCH GeoServer $VERSION as $TAG" echo "Release from branch $BRANCH GeoServer $VERSION as $TAG"