如何连接 Google Cloud Source Repo 与 Codemagic?

How to connect Google Cloud Source Repo with Codemagic?

Codemagic 是一种用于 flutter 应用程序的构建服务,它内置了对 bitbucket、github 等的支持。但是它也支持从其他来源链接存储库。要设置它,他们会要求您提供特定格式。 URL 应采用以下格式:https://example.com/username/repo.gitgit@example.com/username/repo.git.

我正在尝试弄清楚如何以这种格式为我的 google 云源存储库提供 url。我试过这个 https://source.developers.google.com/p/[project-name]/r/[repo-name/ 但后来它抱怨凭据。如果我使用 'git@source.developers.google.com/.....' 格式,我会得到一个选项来加载 ssh 密钥以进行身份​​验证并通过验证,但它没有正确 register/see 端点的 repo,所以有些东西关闭了。

以前有人这样做过。我已经看到一些关于带 google 云的签名 urls 的东西,我想也许我可以使用 https: 格式都制作签名 url 尽管我看到的所有东西都是签名 urls 与云存储有关,与云源无关。

我能够使用下一个 link

将 Google Cloud Source Repo 添加到 Codemagic
ssh://mikhail@example.com@source.developers.google.com:2022/p/woven-voyage-xxxxx/r/test

您还需要注册您的 SSH 密钥 https://source.cloud.google.com/user/ssh_keys?register=true

除了@Mikhil Tokarev 的回答, 添加 Google 源存储库后,您需要手动添加 webhook。 请在本帖中查看我的回答详细说明