geosolutions-it/docker-geoserver

Add a flag to ignore docker image builds on the Hub

Closed this issue · 4 comments

We want to add a variable to skip the image build and push to the docker hub for specific geoserver versions.

I defined IGNORE_VERSIONS in the Hub build settings.

#147 skips those versions for build, test and push.

It works.

...
2024-06-20T08:34:57Z #4 [internal] load metadata for docker.io/library/tomcat:9-jdk11-temurin
2024-06-20T08:34:57Z + rm -rf ./resources/geoserver-plugins/geoserver-2.24-SNAPSHOT-control-flow-plugin.zip ./resources/geoserver-plugins/geoserver-2.24-SNAPSHOT-libjpeg-turbo-plugin.zip ./resources/geoserver-plugins/geoserver-2.24-SNAPSHOT-monitor-plugin.zip
2024-06-20T08:34:57Z + for VERSION in $STABLE_VERSION $MAINT_VERSION
2024-06-20T08:34:57Z + SKIP=0
2024-06-20T08:34:57Z + for IGNORE_VERSION in $IGNORE_VERSIONS
2024-06-20T08:34:57Z + '[' 2.24.3 == 2.25.1 ']'
2024-06-20T08:34:57Z + for IGNORE_VERSION in $IGNORE_VERSIONS
2024-06-20T08:34:57Z + '[' 2.25.1 == 2.25.1 ']'
2024-06-20T08:34:57Z + SKIP=1
2024-06-20T08:34:57Z + break
2024-06-20T08:34:57Z + '[' 1 -eq 1 ']'
2024-06-20T08:34:57Z + continue
2024-06-20T08:34:57Z + for VERSION in $STABLE_VERSION $MAINT_VERSION
2024-06-20T08:34:57Z + SKIP=0
2024-06-20T08:34:57Z + for IGNORE_VERSION in $IGNORE_VERSIONS
2024-06-20T08:34:57Z + '[' 2.24.3 == 2.25.2 ']'
2024-06-20T08:34:57Z + for IGNORE_VERSION in $IGNORE_VERSIONS
2024-06-20T08:34:57Z + '[' 2.25.1 == 2.25.2 ']'
2024-06-20T08:34:57Z + '[' 0 -eq 1 ']'
2024-06-20T08:34:57Z + GEOSERVER_URL=https://sourceforge.net/projects/geoserver/files/GeoServer/2.25.2/geoserver-2.25.2-war.zip/download
2024-06-20T08:34:57Z + mkdir -p ./resources/geoserver-plugins
2024-06-20T08:34:57Z + for PLUG_IN_NAME in $PLUG_IN_LIST
2024-06-20T08:34:57Z + echo monitor
2024-06-20T08:34:57Z monitor
2024-06-20T08:34:57Z + echo 2.25.2
...

@randomorder merge into master and close?

thank you @camuffo