Your own fancy button that uses Cloud Shell to deploy a git repo to Cloud Run in two clicks.
Like this:
To add a Cloud Run deploy button to your project's readme:
-
Copy & paste this markdown:
[](https://console.cloud.google.com/cloudshell/editor?shellonly=true&cloudshell_image=gcr.io/cloudrun/button&cloudshell_git_repo=YOUR_HTTP_GIT_URL)
-
Replace
YOUR_HTTP_GIT_URL
with your HTTP git URL, like:https://github.com/jamesward/hello-kotlin-ktor.git
-
Make sure the repo is buildable on Google Cloud Build and its build config publishes a container to the Google Container Repository. If you use a
cloudbuild.yaml
file, the publishing config must usePROJECT_ID
andREPO_NAME
parameters.