docker autobuild with git private submodule

Syl*_*ain 6 git git-submodules docker

我在GitHub上有两个私有存储库叫做dashboardui.我定义ui为git子模块dashboard,并且我将docker配置为autobuild dashboard对特定分支上的每个更改.

我阅读了这篇文档https://docs.docker.com/docker-hub/builds/,但是当我尝试在我ui的设置中设置docker给出的部署密钥时,它会显示"密钥已在使用中".实际上,这个密钥已被dashboard用于允许docker自动生成此repo!

这是我的docker构建日志:

错误:

Failed to clone repository: Cloning into '/tmp/build_byaxhis7sznbvmb6wgwzm6n'...
Submodule 'app/styles/ui' (git@github.com:yllieth/ui.git) registered for path 'app/styles/ui'
Cloning into 'app/styles/ui'...


Warning: Permanently added 'github.com,192.30.252.130' (RSA) to the list of known hosts.
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
Clone of 'git@github.com:yllieth/ui.git' into submodule path 'app/styles/ui' failed
Run Code Online (Sandbox Code Playgroud)

Dockerfile:

即使我在我的仓库中定义了Docker文件,Docker也找不到任何Dockerfile dashboard.所以,我将无法给它任何指令或添加另一个SSH密钥.

如果有人知道如何使用autobuild与私人回购和git子模块,我很感兴趣!

Cod*_*ard 0

如果子模块不起作用,您可以尝试切换到子树。它更像是做同样的事情,几乎没有什么变化。子树在项目中用作远程。

https://medium.com/@v/git-subtrees-a-tutorial-6ff568381844
http://git-scm.com/book/en/v1/Git-Tools-Subtree-Merging
http://blogs.atlassian .com/2013/05/alternatives-to-git-submodule-git-subtree/