diff --git a/ci-templates/core.yml b/ci-templates/core.yml index 42589fe5a99a7a4aa778ffe637e144302f5b0189..c9681ed7de5b88c83354b03c483ef009cb9700a9 100644 --- a/ci-templates/core.yml +++ b/ci-templates/core.yml @@ -28,4 +28,16 @@ include : default: tags: - - docker \ No newline at end of file + - docker + +.lfs_setup_template: &lfs_setup_definition # Hidden key that defines an anchor + AFTER_SETUP_UPSTREAM_WORKSPACE: "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 ;\ + cd ~/upstream_ws ;\ + find . -type f -name .lfsconfig -execdir git lfs pull \\; ;\ + find . -type f -name .lfsconfig -execdir git lfs ls-files \\; ;\ + cd ~/target_ws ;\ + find . -type f -name .lfsconfig -execdir git lfs pull \\; ;\ + find . -type f -name .lfsconfig -execdir git lfs ls-files \\; ;"