自 2024 年 6 月 17 日起,Cloud Source Repositories 将不再向新客户提供。如果您的组织之前未使用过 Cloud Source Repositories,则无法启用该 API 或使用 Cloud Source Repositories。未与组织相关联的新项目无法启用 Cloud Source Repositories API。2024 年 6 月 17 日之前使用过 Cloud Source Repositories 的组织不受此更改的影响。
从 Cloud Source Repositories 部署 Cloud Run 函数
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本主题介绍了如何使用在 Cloud Source Repositories 中进行版本控制的代码部署 Cloud Run 函数。
通过将 Cloud Run functions 与 Cloud Source Repositories 集成,您可以使用 Cloud Source Repositories 对包含函数的代码进行版本控制。随着函数随时间变化,您可以继续访问先前的提交,以查看函数进行了哪些更改以及更改的时间。
创建和部署函数
将代码存储在 Cloud Source Repositories 中之后,下一步就是创建一个函数并进行部署。按照 Cloud Run Functions 指南中的说明进行操作:从 Cloud Source Repositories 部署。
后续步骤
如需详细了解如何将 Cloud Run 函数部署到 Cloud Source Repositories,请参阅以下 Cloud Run functions 文档:
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-30。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-01-30。"],[],[]]