【发布时间】:2014-11-27 05:36:27
【问题描述】:
我在 GitHub 上有两个私有存储库,名为 dashboard 和 ui。我将ui 定义为dashboard 的git 子模块,并且我将docker 配置为在特定分支的每次更改时自动构建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' failedDockerfile:无
即使我在dashboard repo 中定义了一个,Docker 也找不到任何 Dockerfile。所以,我将无法给它任何指示或添加另一个 SSH 密钥。
如果有人知道如何将 autobuild 与私有 repos 和 git 子模块一起使用,我很感兴趣!!
【问题讨论】:
-
遇到了同样的问题。任何人都可以确认私有子模块应该在自动构建中工作吗?
标签: git docker git-submodules