Add git lfs include/exclude config options into .gitlab-ci.yml
Problem to solve
Often for CI there is no need to pull every git lfs file that the repository has in order to successfully run the build. The CI config should allow for you to specify an exclude/include list as per the lfs spec to allow you to not download unnecessary files.
Further details
Benefits include less space needed on runners, and faster build times as less files are checked out.
Proposal
In the .gitlab-ci.yml
config, the config group lfs
is added with two parameters: fetch_exclude
and fetch_include
which forwards the values onto git lfs fetch
What does success look like, and how can we measure that?
CI builds can exclude/include files stored in LFS as per the config in the yml