setup-gcloud/example-workflows
2020-03-31 16:47:44 -04:00
..
cloud-run Update docs for GCE example workflow 2020-03-31 16:15:59 -04:00
gce Update docs for GCE example workflow 2020-03-31 16:15:59 -04:00
gke Update GKE example workflow docs 2020-03-31 16:47:44 -04:00
README.md Updated example workflow READMEs to include GCE 2020-02-19 13:10:03 -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)
Google Compute Enginer Deploy a container to a GCE VM

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.