Can I use Git submodules and custom branches with CircleCI?

Good day everyone.
My project is setup as a parent project with docker-compose and 2 git modules each with its own Dockerfile. This structure is what I’d use CircleCI with, but it’s not on the master of the git modules

proj (docker-compose/master) -> subproj (git module, docker branch)
-> subproj (git module, docker branch)

Can I have CircleCI work with this kind of configuration?

1 Like

Yes. Build machines in CircleCI 2.0 are ordinary Docker containers, so you can do what you like with them.

It is possible that the checkout step does not do what you need, but it is optional. Just use Git manually to do the checkouts and submodule updates that you need.

2 Likes

Surprisingly enough, the checkout step does exactly what I need. Stupid me for not trying harder the first time.

Thanks a lot for your help.

1 Like

:slightly_smiling_face: no worries.

(In case you don’t know, you can mark either my answer or yours as the solution here - see the “solved” device in the per-reply toolbar above.)

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.