From 8946c095a86d56fbbf01c69e70b4ced90fde0536 Mon Sep 17 00:00:00 2001
From: Alejandro Lopez Gestoso <alopez@iri.upc.edu>
Date: Thu, 29 Oct 2020 10:46:13 +0100
Subject: [PATCH] Updated .gitlab-ci_template.yml to multiples Ubuntu
 distributions' packages generation

---
 .gitlab-ci_template.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci_template.yml b/.gitlab-ci_template.yml
index e537a2b..1118540 100644
--- a/.gitlab-ci_template.yml
+++ b/.gitlab-ci_template.yml
@@ -1,4 +1,4 @@
-  image: docker.io/labrobotica/labrobotica
+  image: docker.io/labrobotica/labrobotica:latest
 
   variables:
     GIT_SUBMODULE_STRATEGY: recursive
@@ -13,7 +13,7 @@
     script:
       #- git submodule sync --recursive
       #- git submodule update --init --recursive
-      - apt update
+      - apt update || apt -y install ca-certificates && apt update
       ##Install dependencies
       #- apt -y install iri-dep1-dev iri-dep2-dev
       - mkdir -pv build
@@ -33,6 +33,6 @@
     script:
       - cd build
       - "scp -i /root/.ssh/iriLabKeyNopwd -r *library-name*.deb irilabo@labrepo.iri.upc.edu:packages/"
-      - "ssh irilabo@labrepo.iri.upc.edu -i /root/.ssh/iriLabKeyNopwd -tt /home/irilabo/repo_scripts/update_repo.sh library-name"
+      - "ssh irilabo@labrepo.iri.upc.edu -i /root/.ssh/iriLabKeyNopwd -tt /home/irilabo/repo_scripts/update_repo.sh library-name $(lsb_release -cs)"
     only:
       - tags
\ No newline at end of file
-- 
GitLab