我正在尝试从 Github 私有(private)存储库在 Docker Hub 上创建自动构建。
- 我将我的 Github 帐户与我的 Docker Hub 帐户关联起来。
- 我验证了 Docker Hub 提供的部署 key 是在我的 Github 存储库中创建的
但是我仍然有一个错误。我不确定它是否与SSH key 或gitmodules有关。
这是我得到的日志(在我的Docker Hub存储库的构建详细信息选项卡中):
Starting to clone
Cloning into 'bsntx4mjvrqncsdvzcn7tqp'...
Warning: Permanently added the RSA host key for IP address 'XXX.XX.XX.XX' to the list of known hosts.
No submodule mapping found in .gitmodules for path 'vendor/bundle/ruby/2.1.0/bundler/gems/logan-3722sdf9a9db5'
please ensure the correct public key is added to the list of trusted keys for this repository and the remote branch exists. (1)
有人有同样的错误吗?
我的解决方案:我通过删除 github 存储库中的文件vendor/bundle/ruby/2.1.0/bundler/gems/logan-3722sdf9a9db5 解决了我的问题。所以关于公钥的错误与此无关。
最佳答案
问题不在于 key 。
我不知 Prop 体的问题。您可以使用以下命令来解决问题。
git submodule update --init
命令的输出将被传递到
git rm --cached {{output}}
推送提交。
关于github - 从 Docker Hub 上的 Github 私有(private)存储库自动构建不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35598365/