Skip to content

Deploy Python Flask to GCP Cloud Run using Github Actions Wokflow

License

Notifications You must be signed in to change notification settings

htangga/cloudrun-gcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisite

Please refer to this link https://github.com/google-github-actions/auth to complete the prerequisites. Make sure we don't miss any single step.

  1. Create service account in IAM GCP and download credentials.json with contain following permisson:
  • Read/Write Cloud Run IAM permissions
  • Read/Write Artifact Registry IAM permissions
  • Read/Write Storage Admin
  1. Enable API each GCP service that needed:
  • Cloud Run
  • Cloud Container Registry / Artifact Registry
  1. OIDC Provider Identitiy Federation at GCP must be active

  2. Create Github secret with desired environment name to secure sensitive information.