Skip to content

A GitHub Action which published a Docker container to Google Container Registry and then deploys the container to Google Cloud Run

License

Notifications You must be signed in to change notification settings

dnln/action-gcloud-run

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

action-gcloud-run

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:

  1. Configures the gcloud CLI
  2. Build the docker image
  3. Pushes the docker image to GCP Container Registry
  4. 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

About

A GitHub Action which published a Docker container to Google Container Registry and then deploys the container to Google Cloud Run

Resources

License

Stars

Watchers

Forks

Packages

No packages published