From 4a705e7a1674dc5df85bc06122bec184f35cff78 Mon Sep 17 00:00:00 2001 From: Jon Azpiazu <jon.azpiazu@tecnalia.com> Date: Thu, 16 Sep 2021 12:34:15 +0200 Subject: [PATCH] Move the anchor definition --- ci-templates/core.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/ci-templates/core.yml b/ci-templates/core.yml index c9681ed..fb8a8b3 100644 --- a/ci-templates/core.yml +++ b/ci-templates/core.yml @@ -15,6 +15,18 @@ services: - name: tecnalia-docker-dev.artifact.tecnalia.com/docker:dind alias: 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 \\; ;" + stages: - build @@ -29,15 +41,3 @@ include : default: tags: - 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 \\; ;" -- GitLab