https://github.com/pathmotion/drone-gcloud-cli-plugin
Lightweight drone plugin to use the gcloud commands in an authenticated context.
https://github.com/pathmotion/drone-gcloud-cli-plugin
Last synced: 6 months ago
JSON representation
Lightweight drone plugin to use the gcloud commands in an authenticated context.
- Host: GitHub
- URL: https://github.com/pathmotion/drone-gcloud-cli-plugin
- Owner: PathMotion
- Created: 2019-01-30T15:51:23.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-31T09:06:25.000Z (about 7 years ago)
- Last Synced: 2025-03-06T08:57:34.954Z (11 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Drone Google Cloud cli Plugin
[](https://travis-ci.org/pathmotion/drone-gcloud-cli-plugin)
Lightweight drone plugin to use the gcloud commands in an authenticated context.
It uses the official Google Cloud SDK image.
## Usage
```yaml
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.