spotify / docker-maven-plugin

INACTIVE: A maven plugin for Docker
Apache License 2.0
2.66k stars 575 forks source link

Google API Key Reference in Settings.xml #326

Closed kcturner123 closed 7 years ago

kcturner123 commented 7 years ago

Description

I am using the spotify.com maven-docker-plugin to push a docker image to a google container registry. I initially configured the the oauth token in the maven settings.xml file and it worked like a champ. However, I don't want to have to get a new token multiple times throughout the day and would like to use the private key for the service account. I can't seem to figure out how to make this work. I keep getting an "Incomplete Docker registry authorization credentials" error. It seems the plugin always expects a password with the username.

How to reproduce

Configure server in settings.xml with username of _json_key and privateKey entry referencing the private key filel

What do you expect

I expect the docker image to be pushed to may Google container registry.

What happened instead

I get an "Incomplete Docker registry authorization credentials" error.

Software:

Full backtrace

[Paste full backtrace here]