docker-maven-plugin
docker-maven-plugin copied to clipboard
Build Images for Multiple Registries
We are pushing our images to both docker.io and quay.io. Currently, we use this plugin to build the images. However, we are only able to build the images for either docker.io (or) quay.io at a time. We have a script in place that manually tags the images for quay.io and then we push the tagged images to quay.io. is it possible to build images for both registries at a time using this plugin?
Here's the reference of our plugin configuration: https://github.com/Apicurio/apicurio-registry/blob/2.0.0.RC1/distro/docker/pom.xml#L122
Have you experimented with multiple Maven profiles for the different registries ? Actually and afair only several tags are supported for a single image, but not registries (which can become a bit more tricky when it comes to authentication).
I was just solving the very same issue and reached this issue description.
Another solution (for anyone who will face the same problem again):
I used multiple executions (configured plugin globally, and just changed "second"
Regards