-
Notifications
You must be signed in to change notification settings - Fork 642
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
Push Authentication configuration in pom not working #858
Comments
Have you tried to use an entry in ~/.m2/settings.xml like <servers>
<server>
<id>gitlab.comp.de</id>
<username>user</username>
<password>secret</password>
</server>
....
</servers> ? Would be interesting if this works for you. (btw, this way is recommended over using an |
Yes, using I know settings.xml is preferred to using credentials in pom.xml, but the documentation says that |
Agreed, it should work of course. 'will have a look asap (not sure when time permits). |
It appears that the authConfig is never actually read/created? |
Fancy to have a look and send a PR ? I'm currently really flooded and will tackle this issue, but probably not very soon. |
I would like to try. But I'm new to maven plugin dev. Could you point me to the class / package that handles reading the pom configuration? The general direction would be ok, I guess. And is there some documentation how to debug the plugin, so I can see how it works with my pom? |
Description
I'm trying to build my image based on a public docker image and then push my image to my private registry (gitlab), which requires authentication.
The push fails with
when defining
<authConfig><push>
in pom.xml as described in documentation https://dmp.fabric8.io/#authenticationThe push works when specifying
-Ddocker.push.username
and-Ddocker.push.password
on command line.It also works if I login to registry with
docker login gitlab.comp.de:5555
firstIt also works if I omit
<push>
and provide<username>
and<password>
directly under<authConfig>
. Obviously, in this case the image has to be locally available already, otherwise the pull will fail withunauthorized: incorrect username or password
.Info
mvn -v
) :pom.xml
The text was updated successfully, but these errors were encountered: