The Docker build tool already support building and uploading to multiple registries (by using full image names), but it allows to login only into one. This PR supports to login into multiple registries.
While the changes in the tool were quite small, the workflow got quite large changes
Each registry gets its own "Docker Login" step. If a login is not needed the step can either be commented out or the if: condition can be set to false.
For the build tool the environment variables DOCKER_USERNAME and DOCKER_PASSWORD are gone, as they allow only a login for one registry. Instead multiple variables whose name are starting with "DOCKER_LOGIN" can be specified, its format is <registry> <user> <password>. As before these environment variables are optional and only needed for private repositories.
The Docker build tool already support building and uploading to multiple registries (by using full image names), but it allows to login only into one. This PR supports to login into multiple registries.
While the changes in the tool were quite small, the workflow got quite large changes
if:
condition can be set to false.<registry> <user> <password>
. As before these environment variables are optional and only needed for private repositories.