setup-gcloud/example-workflows
2020-02-13 16:52:47 -08:00
..
cloud-run Fix bad copy 2020-01-30 15:08:46 -08:00
gce Improve formatting 2020-02-13 16:52:47 -08:00
gke change image name 2020-01-28 13:26:14 -08:00
README.md Update license and readmes 2020-01-28 11:01:06 -08:00

Example Workflows for Github Actions with Google Cloud Platform

These example workflows use the setup-gcloud to build and deploy applications to Google Cloud Platform.

Workflows

Workflow Description
Google Kubernetes Engine Deploy a static site to an existing GKE cluster
Cloud Run Deploy a container to Cloud Run (Fully Managed)

Before you begin

  1. Create or select a Google Cloud Platform project.

  2. Make sure that billing is enabled for your Google Cloud project. Learn how to confirm billing is enabled for your project.

  3. Create a Service Account and download a JSON key.

  • Base64 encode your JSON key with the following command:
base64 ~/path/to/key/key.json
  • Add the encoded key to the repository's secrets (⚙ Settings > Secrets), named GOOGLE_APPLICATION_CREDENTIALS.

  • Add the service account email, <NAME@PROJECT_ID.iam.gserviceaccount.com, to the repository's secrets, named SA_EMAIL.

Github Actions Resources

Learn more about Automating your workflow with Github Actions.