From 49782a201fae60d05f49897280770e73202cd59a Mon Sep 17 00:00:00 2001 From: Greg Chabala Date: Wed, 14 Mar 2018 11:58:44 -0500 Subject: [PATCH] Add more GCR authentication CLI details (#158) * also enumerate Maven plugin goals --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 1e8df58e..74fd1cfc 100644 --- a/README.md +++ b/README.md @@ -208,6 +208,17 @@ before running the plugin. [ADC]: https://developers.google.com/identity/protocols/application-default-credentials +GCR users may need to initialize their Application Default Credentials via `gcloud`. +Depending on where the plugin will run, they may wish to use [their Google +identity][app-def-login] by running the following command + + gcloud auth application-default login + +or [create a service account][service-acct] instead. + +[app-def-login]: https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login +[service-acct]: https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account + ## Authenticating with maven settings.xml Since version 1.3.6, you can authenticate using your maven settings.xml instead @@ -276,6 +287,15 @@ with this command line call mvn goal -Ddockerfile.username=... -Ddockerfile.password=... +## Maven Goals + +Goals available for this plugin: + +| Goal | Description | Default Phase | +| ---- | ---- | ---- | +| `dockerfile:build` | Builds a Docker image from a Dockerfile. | `package` | +| `dockerfile:tag` | Tags a Docker image. | `package` | +| `dockerfile:push` | Pushes a Docker image to a repository. | `deploy` | ## Skip Docker Goals Bound to Maven Phases