Is there a way to connect to multiple private git repositories during dockerhub auto build? We are creating golang applications and have to βswitchβ to other private repositories as part of our assembly, and at the moment they are failing because the docker cannot connect to them, only the target private repo.
The main repo is fine, as the deployment key is installed through Dockerhub, but all subsequent private repo imports do not work.
One way that I see is to create an image locally, βdockerβ direct it to the docker hub, and then pull it out on the deployment side, which defeats the goal of the docker hub and automated build system. Another is to bake ssh keys in the base image, which is not a great idea.
Does anyone have a solution that does not include throwing ssh keys into images or creating locally?
Thank you very much.
source share