From 5b1ba8704adf022ca3f8a13f86b11d340bef9455 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:40:58 +0200
Subject: [PATCH] Install curl on BEFORE_INIT

---
 ci-templates/core.yml     | 2 +-
 ci-templates/lfs-pull.yml | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ci-templates/core.yml b/ci-templates/core.yml
index aa37a69..3553a10 100644
--- a/ci-templates/core.yml
+++ b/ci-templates/core.yml
@@ -18,7 +18,7 @@ stages:
   - build
 
 before_script:
-  - apk add --update bash coreutils tar wget curl
+  - apk add --update bash coreutils tar wget
   - docker login tecnalia-docker-dev.artifact.tecnalia.com -u ${ARTIFACT_CI_USER} -p ${ARTIFACT_CI_TOKEN}
 
 include:
diff --git a/ci-templates/lfs-pull.yml b/ci-templates/lfs-pull.yml
index 5540872..245ba07 100644
--- a/ci-templates/lfs-pull.yml
+++ b/ci-templates/lfs-pull.yml
@@ -4,7 +4,8 @@
 
 .industrial_ci:
   variables:
-    BEFORE_INIT: "bash <(curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh);\
+    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);\
                 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 ;"
-- 
GitLab