Skip to content

priyanshugcp/CICD-CloudRun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploying Flask Application on Cloud Run using CI-CD Pipeline

  1. Enable Cloud Source Repository API & create a new repository by giving meaningful repo name and choosing Project ID on which you are going to Work

  2. Next step, Add code to your repository by following below commands on CloudShell.

    a) gcloud init

    b) gcloud source repos clone REPO_NAME --project=PROJECT_ID

    c) cd REPO_NAME

    d) git add -A

    e) git commit -m "SOME_MESSAGE"

    f) git push -u origin master

  3. Enable Artifact Registry API and create a repository of format Docker which will stores your docker images.

FOLDER STRUCTURE OF REPOSITORY: "region-name-docker.pkg.dev > project id > name of the repository"

  1. Enable Cloud Run API & Cloud Build API

  2. Go to Cloud Build --> Click Settings first & then First enable Cloud Run, this will create a service account which will have Cloud Run Admin role which will help cloud build to create and deploy an application to Cloud Run.

  3. Create a trigger and click on RUN to start the build process.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published