Plugin that allows you create and configure the Google Cloud auth configuration file that could be used with gcloud CLI. The plugin also configures Docker configuration(~/.docker/config.json) to enable push and pull of the container images from Google Artifact Registry. **IMPORTANT:** The plugin supports only Google Artifact Registry.
Example
kind: pipeline
type: docker
name: default
steps:
- name: configure gcloud
  image: docker.io/kameshsampath/drone-gcloud-auth:2.0.0
  pull: if-not-exists
  settings:
    google_application_credentials:
      from_secret: google_application_credentials
    google_cloud_project:
      from_secret: google_cloud_project
    registry_locations:
      - asia-south1
      - us-central1
  volumes:
    - name: gcloud-config
      path: /root/.config/gcloud
    - name: docker-config
      path: /root/.docker
volumes:
- name: gcloud-config
  temp: {}
- name: docker-config
  temp: {}
Properties
- google_application_credentialsstringrequired- The Google Cloud Service Account JSON that will be used to configure your `gcloud` authorizations to be used with gcloud CLI. Secret recommended- Default: none 
- google_cloud_projectstringrequired- The Google project which will be set as default project on when using "glcoud". Secret recommended- Default: none 
- google_cloud_regionstringoptional- The Google region which will be set as default `compute/region` when using `gcloud`. You can find the available regions using the command "gcloud compute regions list". If configured this region will be enabled for Google Artifact Registry. Secret recommended- Default: none 
- registry_locationsstringoptional- The list of Google Artifact Registry locations to configure with Google Cloud Docker credential helper. - Default: none