Skip to content

Simple github action to deploy an image revision to Cloud Run

License

Notifications You must be signed in to change notification settings

bastiankistner/action-cloud-run

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Action for Google Cloud Run

An GitHub Action for deploying revisions to Google Cloud Run.

Usage

Docker image

In your actions workflow, somewhere after the step that builds gcr.io/<your-project>/<image>, insert this:

- name: Deploy service to Cloud Run
  uses: stefda/action-cloud-run@1.0.0
  with:
    working_directory: [service-api]
    service_key: ${{ secrets.GCP_CLOUD_RUN_SERVICE_KEY }}
    project: [your-project]
    registry: [eu.gcr.io]
    region: [gcp-region]
    env: [path-to-env-file]

Your GCP_CLOUD_RUN_SERVICE_KEY secret (or whatever you name it) must be a base64 encoded gcloud service key with the following permissions:

  • Service Account User
  • Cloud Run Admin
  • Storage Admin

The env input is optional.

About

Simple github action to deploy an image revision to Cloud Run

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 94.4%
  • Dockerfile 5.6%