Reputation: 4232
I have a private BitBucket repository that stores my Dockerfile
. This repository has two other private BitBucket repositories as git submodules
. I setup an automated build process on Docker hub and added the public SSH key to my three private repositories on BitBucket. However, when the build runs, it successfully connects to the main private repository on BitBucket but fails when trying to get the submodules. I see the following error in the log file:
fatal: could not read Username for 'https://bitbucket.org': No such device or address
It seems like the build agent is trying to access the submodules via HTTPS
, and obviously, fails as there is no web access setup.
Am I missing something or is it a limitation that I'll have to live with for the moment?
Upvotes: 0
Views: 239
Reputation: 4232
I figured it out. My .gitmodules
had an HTTPS
URL for that particular repository. I edited the .gitmodules
file and changed the URL to SSH
. Seems like it is building now :-)
Upvotes: 0