Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

Google API Key Reference in Settings.xml #326

Closed
kcturner123 opened this issue Apr 8, 2017 · 0 comments
Closed

Google API Key Reference in Settings.xml #326

kcturner123 opened this issue Apr 8, 2017 · 0 comments

Comments

@kcturner123
Copy link

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:

  • docker version: 17.03.0-ce
  • docker-maven-plugin version: 0.4.11
  • maven version: 3.3.9

Full backtrace

[Paste full backtrace here]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant