我在GitHub上有兩個私人存儲庫,名爲dashboard
和ui
。我將ui
定義爲dashboard
的git子模塊,並且我將Docker配置爲自動構建dashboard
對特定分支上的每個更改。git私有子模塊的docker autobuild
我閱讀了這個文檔https://docs.docker.com/docker-hub/builds/,但是當我嘗試設置docker在我的ui
的設置中給出的部署密鑰時,它說「密鑰已被使用」。事實上,dashboard
已使用此密鑰來允許docker自動構建此回購站!
這裏是我的搬運工生成日誌:
Error:
Failed to clone repository: Cloning into '/tmp/build_byaxhis7sznbvmb6wgwzm6n'... Submodule 'app/styles/ui' ([email protected]: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 '[email protected]:yllieth/ui.git' into submodule path 'app/styles/ui' failed
Dockerfile: None
碼頭工人沒有發現任何Dockerfile即使我有一個在我dashboard
回購定義。所以,我將無法給出任何指示或添加另一個SSH密鑰。
如果任何人有關於如何使用autobuild與私人回購和git子模塊的想法,我很感興趣!
遇到同樣的問題。任何人都可以確認私人子模塊應該在自動構建中工作嗎? – 2014-11-17 06:51:21