This topic describes how to deploy Cloud Run functions by using code that is version controlled in Cloud Source Repositories.
By integrating Cloud Run functions with Cloud Source Repositories, you can use Cloud Source Repositories to version control the code that contains your function. As the function changes over time, you can continue to access previous commits to see how the function changed and when.
Create and deploy the function
With your code stored in Cloud Source Repositories, your next step is to create a function and deploy it. Follow the instructions in the Cloud Run functions guide: Deploying from Cloud Source Repositories.
What's next
For more information on deploying Cloud Run functions to Cloud Source Repositories, see the following Cloud Run functions documentation: