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