From fb4f8e53c963dfe2349c029fba67804c19ef7980 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:48:25 +0200
Subject: [PATCH] Change script hooks

---
 ci-templates/lfs-pull.yml | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/ci-templates/lfs-pull.yml b/ci-templates/lfs-pull.yml
index 245ba07..ca15f2f 100644
--- a/ci-templates/lfs-pull.yml
+++ b/ci-templates/lfs-pull.yml
@@ -4,10 +4,9 @@
 
 .industrial_ci:
   variables:
-    BEFORE_INIT: "apt-get update &> /dev/null && apt-get install -q -y curl; \
-                bash <(curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh);\
+    AFTER_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
+    BEFORE_INSTALL_TARGET_WORKSPACE: *lfs-pull-script
+    BEFORE_INSTALL_UPSTREAM_WORKSPACE: *lfs-pull-script
-- 
GitLab