An example GitHub Action which published a Docker container to Google Container Registry and then deploys the container to Google Cloud Run
This GitHub Action does the following:
- Configures the
gcloudCLI - Build the docker image
- Pushes the docker image to GCP Container Registry
- Deploys the docker image to GCP Cloud Run
This GitHub Action requires the following config:
- GCP_PROJECT (secret)
- The GCP project used for Google Container Registry and Google Cloud Run
- GCP_EMAIL (secret)
- The email address of the service account used to run this action
- GCP_REGION (secret)
- The region the Google Run service is hosted in
- GCP_KEY (secret)
- A based64 encode version of the JSON key for the service account
- IMAGE
- The name of the container image
- SERVICE
- The name of the Google Cloud Run service