从 Cloud Source Repositories 部署 Cloud Functions

本主题说明如何使用在 Cloud Source Repositories 中进行版本控制的代码部署 Cloud Functions

通过将 Cloud Functions 与 Cloud Source Repositories 集成,您可以使用 Cloud Source Repositories 对包含函数的代码进行版本控制。随着函数随时间变化,您可以继续访问先前的提交,以查看函数进行了哪些更改以及更改的时间。

创建和部署函数

将代码存储在 Cloud Source Repositories 中之后,下一步就是创建一个函数并进行部署。按照 Cloud Functions 指南中的说明进行操作:从 Cloud Source Repositories 部署

后续步骤

如需详细了解如何将 Cloud Functions 部署到 Cloud Source Repositories,请参阅以下 Cloud Functions 文档: