mirror of
https://github.com/google-github-actions/setup-gcloud.git
synced 2026-08-25 22:09:24 +00:00
| .. | ||
| script | ||
| test | ||
| .dockerignore | ||
| Dockerfile | ||
| entrypoint.sh | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| THIRD_PARTY_NOTICE.md | ||
GitHub Action for Google Cloud Auth
The GitHub Actions for Google Cloud Platform and wraps the gcloud SDK for authorizing a service account. This is a thin wrapper around the gcloud auth command, facilitating providing credentials securely using Secrets.
Usage
Example Workflow file
An example workflow to authenticate with Google Cloud Platform:
workflow "Run gcloud Login" {
on = "push"
resolves = "Load credentials"
}
action "Setup Google Cloud" {
uses = "actions/gcloud/auth@master"
secrets = ["GCLOUD_AUTH"]
}
Subsequent actions in the workflow will then be able to use gcloud as that user (see cli for examples).
Secrets
GCLOUD_AUTHRequired Base64 encoded service account key exported as JSON- For information about service accout keys please see the Google Cloud docs
- For information about using Credentials in Actions please see the Actions docs.
Example on encoding from a terminal : base64 ~/<account_id>.json
License
The Dockerfile and associated scripts and documentation in this project are released under the MIT License.
Container images built with this project include third party materials. See THIRD_PARTY_NOTICE.md for details.