Skip to content

Git submodules not working with docker ci runner

Hello,

I'm using the Gitlab runner via docker. The repo i'm attempting to run builds for has a git submdules file like this:

[submodule "vendors/curl"]
	path = vendors/curl
	url = git@<HOST>:10022/mobile/curl.git
	branch = master

but when the build runs, I get this error:

ssh: connect to host <HOST> port 22: Connection refused
fatal: Could not read from remote repository.

Please make sure you have the correct access rights

I've already ensured that my runner base container has the proper deploy keys for pulling down the submodules and access.

Thoughts?