`git clone project2` in gitlab-ci.yml?

I would like Gitlab CI to check out the source code of another project. Is there a better way than adding a read-only deployment key and configuring it in .gitlab-ci.yml?

+3


source to share


1 answer


You can also use GIT SUBMODULES in your project A to link to project B and then add

GIT_SUBMODULE_STRATEGY: recursive

to the gitlab-ci.yml file in project A.



It also allows you to point to a specific branch or commit from your subproject.

https://docs.gitlab.com/ce/ci/git_submodules.html

+4


source







All Articles