Skip to content

DockerImage Build, Push and Deploy to GCP Cloud Run via GCP Cloud Build

Notifications You must be signed in to change notification settings

PTuruz/gcp-cicd-cloudruns

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DockerImage Build, Push and Deploy to GCP Cloud Run via GCP Cloud Build



In order to deploy via Cloud Build located in project MANAGEMENT to CloudRun located in project STAGING,PROD you will need:

  1. In project MANAGEMENT, get email of account for [email protected]

  2. In project STAGING and PROD add this account as princial into IAM and add Roles:

    IAM Role Name IAM Role Permission
    Cloud Run Admin roles/run.admin
    Service Account User roles/iam.serviceAccountUser

In order to CloudRun located in project STAGING and PROD to PULL docker images from Artifact Registry located in project MANAGEMENT you will need:

  1. In project STAGING and PROD get email of account [email protected]
  2. In project MANAGEMENT in permissions of Artifact Registry Repository, add princial from Step-1 with the following role:
    • Artifact Registry Reader - roles/artifactregistry.reader

In order to CloudBuild located in project MANAGEMENT to PUSH docker images to Artifact Registry located in project MANAGEMENT you will need:

  1. In project MANAGEMENT get email of account [email protected]
  2. In project MANAGEMENT in permissions of Artifact Registry Repository, add princial from Step-1 with the following role:
    • Artifact Registry Writer - roles/artifactregistry.writer

Copyleft (c) by Denis Astahov

About

DockerImage Build, Push and Deploy to GCP Cloud Run via GCP Cloud Build

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%