Revise release.sh based on build.geoserver.org testing

pull/22/head
Jody Garnett 2023-04-28 16:48:18 -07:00
parent 28a182c964
commit 9158bc61c7
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ echo "Release from branch $BRANCH GeoServer $VERSION as $TAG"
# Go up one level to the Dockerfile # Go up one level to the Dockerfile
cd ".." cd ".."
if [ $2 == *"build"* ]; then if [[ $2 == *build* ]]; then
echo "Building GeoServer Docker Image..." echo "Building GeoServer Docker Image..."
if [[ "$VERSION" == *"-SNAPSHOT"* ]]; then if [[ "$VERSION" == *"-SNAPSHOT"* ]]; then
echo " nightly build from https://build.geoserver.org/geoserver/$BRANCH" echo " nightly build from https://build.geoserver.org/geoserver/$BRANCH"
@ -64,7 +64,7 @@ if [ $2 == *"build"* ]; then
fi fi
fi fi
if [ $2 == *"publish"* ]; then if [[ $2 == *"publish"* ]]; then
echo "Publishing GeoServer Docker Image..." echo "Publishing GeoServer Docker Image..."
echo $DOCKERPASSWORD | docker login -u $DOCKERUSER --password-stdin geoserver-docker.osgeo.org echo $DOCKERPASSWORD | docker login -u $DOCKERUSER --password-stdin geoserver-docker.osgeo.org
echo "docker push $TAG" echo "docker push $TAG"