Pipeline to prepare the production-ready Docker image of a new stable version of Silverpeas. This image will be built and registered among the official supported Docker images in the Docker Hub.

This pipeline is triggered by another one, say the one releasing a new stable version of Silverpeas. The Docker image will be tagged with the version of Silverpeas, and as latest only for a major or a minor version. For later, a new branch in the SCM will be created in order to pursuit the constructing of Docker images of patch versions of Silverpeas from this branch.

Once the generation of the Docker image recipe is done, a PR will be opened in the Github repository of the Docker official Images.

This script takes care of an update of the existing Docker image recipe for a given version of Silverpeas. In this case, the tag will be deleted in order to be recreated. (But the commit related to the previous build, from which the tag has been created, isn't reverted.)

It requires the following parameters:

SILVERPEAS_VERSION
the version of Silverpeas to run for testing purpose.
WILDFLY_VERSION
the version of Wildfly atop of which Silverpeas will run.