Skip to content

Lightweight drone plugin to use the gcloud commands in an authenticated context.

Notifications You must be signed in to change notification settings

PathMotion/drone-gcloud-cli-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drone Google Cloud cli Plugin

Build Status

Lightweight drone plugin to use the gcloud commands in an authenticated context.

It uses the official Google Cloud SDK image.

Usage

pipeline:
  copy:
    image: pathmotion/drone-gcloud-cli-plugin
    project: my-google-cloud-project
    cmd: gcloud datastore indexes create index.yaml
    secrets:
      - source: GCLOUD_SERVICE_ACCOUNT
        target: GCLOUD_SERVICE_ACCOUNT
    when:
      event: deployment

Parameters

  • project : The google cloud project to use
  • cmd : The command to run. gcloud, gstorage and other official cli commands are available

Secrets

Create a Google Cloud service account with the needed permissions.

Make sure its content is exposed through the GCLOUD_CREDENTIALS secret.

About

Lightweight drone plugin to use the gcloud commands in an authenticated context.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published