The GitHub Actions for Google Cloud Platform and wraps the gcloud SDK for authorizing a service account.
An example workflow to authenticate with Google Cloud Platform and run the gcloud command:
workflow "Run gcloud Login" {
on = "push"
resolves = "Load credentials"
}
action "Setup Google Cloud" {
uses = "docker://github/gcloud-auth"
secrets = ["GCLOUD_AUTH"]
}
action "Load credentials" {
needs = ["Setup Google Cloud"]
uses = "docker://github/gcloud"
args = "container clusters get-credentials example-project --zone us-central1-a --project data-services-engineering"
}
GCLOUD_AUTHRequired Base64 encoded service account key exported as JSON more info
Example on encoding from a terminal : base64 ~/<account_id>.json
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.