git - Gitlab multi project CI -


i have complex latex set of projects composed of following directories.

package/ scripts/ aux/ proj1/ proj2/ ... 

each proj1, proj2, ... book. build proj1/, example, have set of scripts in script folder. these scripts copy files in aux/ folder each proj1/ folder. package/ folder should present compile book. therefore, files in pacakge/, scripts/ , aux/ common each book (proj1, proj2, ...) independent of them. therefore think have keep each folder in separate git repository.

now, use gitlab-ci facility build each proj*/. know have setup docker runner, problem how in way using multiple repositories. build books, not when commit porj*, when commit aux or package. how should setup multi-project ci?

note: when coding proj/ made changes package , aux may break other books. thought may relate each proj1, proj2, packages , aux, configuring package , aux submodules of proj (it understanding in way link each book specific version of aux , package). using submodules make easier setup multi-project ci? idea use submodules way? (i aware submodules easy make mistakes).

your question 2 parts. first how create multiple git repositories , use 1 (the shared code) in others (the books). second how use gitlab ci trigger build in case of change of repos.

first part easy, need 1 repository contains shared code (scripts, aux, ...) , each book repo contains book data , shared repo submodule. see git submodules if dont know are.

this far have solved half of problem. on gitlab, ci needs specific setup when using git submodules, see here setup instructions. way each book repo can built. last step setup shared repo trigger build on book repos. can done using trigger urls described here.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -