This guide shows you how to create a Cloud Run service and configure a Cloud Build trigger for continuous deployment. In the Google Cloud console, go to the Cloud Run page. Click Create service. Select Continuously deploy from a repository. Click Set up with Cloud Build. In the Repository list, select the forked GitHub repository that you created for your app. If your repository isn't listed, click Manage connected repositories. If prompted, do the following: If this is the first time you are using a repository with Cloud Build in this project, select the checkbox to agree to the terms of use policy. Click Next. In the Build configuration section, enter the following details: Source location: Enter the following: Click Save. On the Create service page, in the Configure section, enter the following details: Click Container(s), volumes, networking, security. In the Revision autoscaling section, enter the following: Click Create. Optional: To test the app deployment to Cloud Run, do the following: On the Services page in Cloud Run, click the service name. On the Service details page, click the URL displayed next to the service name. In Cloud Build, go to the Triggers page. Click the name of your new trigger. Under Source, click Show included and ignored files filters. In the Included files filter box, enter Click Save.
Create a Cloud Run service with continuous build
^main$
. Don't update this./gemini/sample-apps/gemini-streamlit-cloudrun/Dockerfile
gemini-streamlit-cloudrun
.
1
.3
.
Set up an automatic Cloud Build trigger
gemini-streamlit-cloudrun/**
.
Step 2: Create a Cloud Run service
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-23 UTC.