1

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

我试图弄清楚如何以这种格式为我的谷歌云源代码库提供一个 url。我试过这个https://source.developers.google.com/p/[project-name]/r/[repo-name/但它抱怨凭据。如果我使用 'git@source.developers.google.com/.....' 格式,我可以选择加载 ssh 密钥进行身份验证并通过验证,但它没有正确注册/查看 repo端点所以有些东西是关闭的。

以前任何人都这样做过。我已经看到了一些关于带有 google cloud 的签名 url 并认为也许我可以使用 https: 格式都制作一个签名 url,尽管我看到的所有签名 url 都与云存储而不是云源有关。

4

2 回答 2

3

我能够使用下一个链接将 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

于 2020-01-21T10:26:16.607 回答
0

除了@Mikhil Tokarev 的回答,您还需要在添加 Google 源代码库后手动添加 webhook。请在此线程中查看我的答案详细说明https://stackoverflow.com/a/63362923/11082769

于 2020-08-12T14:17:01.767 回答