From ca5544ce4c7311380278c46859eadeff48c369f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1igo=20Moreno?= <inigo.moreno@tecnalia.com> Date: Wed, 22 Sep 2021 11:07:41 +0200 Subject: [PATCH] Add lfs-pull --- ci-templates/lfs-pull.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ci-templates/lfs-pull.yml diff --git a/ci-templates/lfs-pull.yml b/ci-templates/lfs-pull.yml new file mode 100644 index 0000000..b657a44 --- /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 -- GitLab