Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Images for Multiple Registries #1444

Open
riprasad opened this issue Mar 22, 2021 · 2 comments
Open

Build Images for Multiple Registries #1444

riprasad opened this issue Mar 22, 2021 · 2 comments

Comments

@riprasad
Copy link

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

@rhuss
Copy link
Collaborator

rhuss commented Mar 22, 2021

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).

@rstribrn
Copy link

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" configuration to point to the second registry). Its more straightforward in my case (than executing Maven project multiple times with different profiles).

Regards

@StFS StFS mentioned this issue Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants