diff --git a/ci-templates/lfs-pull.yml b/ci-templates/lfs-pull.yml new file mode 100644 index 0000000000000000000000000000000000000000..b657a44e5c105074465de3a7f0339307e6aefe36 --- /dev/null +++ b/ci-templates/lfs-pull.yml @@ -0,0 +1,11 @@ +.lfs-pull-script: &lfs-pull-script + "find $$current_ws -type f -name .lfsconfig -execdir git lfs pull \\; ;\ + find $$current_ws -type f -name .lfsconfig -execdir git lfs ls-files \\; ;" + +.industrial-ci: + BEFORE_INIT: "bash <(curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh);\ + apt install -qq -y git-lfs; \ + git config --global credential.helper store; \ + echo https://$ARTIFACT_CI_USER:$ARTIFACT_CI_TOKEN@artifact.tecnalia.com > ~/.git-credentials ;" + BEFORE_BUILD_TARGET_WORKSPACE: *lfs-pull-script + BEFORE_BUILD_UPSTREAM_WORKSPACE: *lfs-pull-script