How can configure the GitLab CI runners to clone without downloading the LFS files? Those files are not needed for the tests and it would speed up our development workflow significantly. Any help is very much appreciated!
I have only encountered the same question on reddit: link with unfortunately no useful answers. Note that I also posed the question the gitlab forum two months ago (link) with no luck so far.
You can try setting the variable GIT_LFS_SKIP_SMUDGE=1
variables:
GIT_LFS_SKIP_SMUDGE: "1"
or take control over the git checkout
call, and set lfs.fetchexclude
beforehand
variables:
GIT_STRATEGY: clone
GIT_CHECKOUT: "false"
script:
- git config lfs.fetchexclude "*"
- git checkout $CI_COMMIT_REF_NAME
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With