Drone plugins > Google Cloud Auth
google-cloud.svg

Google Cloud Auth

by kameshsampath


Plugin that allows you create and configure the Google Cloud configuration file that could be used with gcloud CLI.

Example

kind: pipeline
type: docker
name: default

steps:

- name: configure gcloud
  image: docker.io/kameshsampath/drone-gcloud-auth:v1.0.0
  pull: if-not-exists
  settings:
    google_application_credentials:
      from_secret: service_account_json
    google_cloud_project:
      from_secret: google_cloud_project
  volumes:
    - name: gcloud-config
      path: /home/dev/.config/gcloud
volumes:
- name: gcloud-config
  temp: {}

Properties

  • google_application_credentials

    stringrequired

    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_project

    stringrequired

    The Google project which will be set as default project on when using `glcoud`.

    Secret recommended

    Default: none

  • registries

    stringoptional

    The list of registries to configure with Google Cloud Docker credential helper.

    Default: none