Handle Release Candidate branches
parent
d151510c1e
commit
66456cdf83
|
|
@ -9,7 +9,7 @@ function usage() {
|
||||||
echo "$0 <mode> <version> [<build>]"
|
echo "$0 <mode> <version> [<build>]"
|
||||||
echo ""
|
echo ""
|
||||||
echo " mode : The mode. Choose one of 'build', 'publish' or 'buildandpublish'"
|
echo " mode : The mode. Choose one of 'build', 'publish' or 'buildandpublish'"
|
||||||
echo " version : The released version to build an docker image for (eg: 2.23.1, ${MAIN}-SNAPSHOT)"
|
echo " version : The released version to build an docker image for (eg: 2.23.1, ${MAIN}-SNAPSHOT, ${MAIN}-RC)"
|
||||||
echo " build : Build number (optional)"
|
echo " build : Build number (optional)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -26,11 +26,16 @@ else
|
||||||
BUILD=$3
|
BUILD=$3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${VERSION:0:4}" == "$MAIN" ]]; then
|
if [[ "$VERSION" == *"-RC"* ]]; then
|
||||||
|
# release candidate branch release
|
||||||
|
BRANCH="${VERSION:0:4}-RC"
|
||||||
|
TAG=geoserver-docker.osgeo.org/geoserver:$BRANCH
|
||||||
|
else
|
||||||
|
if [[ "${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"
|
||||||
|
|
@ -39,6 +44,7 @@ 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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue