diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c42a56f931ae9ba95910383934c581835bc92644..87b70877bef74ee6fe95ae23f810542c99757887 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,4 @@
-image: docker.io/labrobotica/labrobotica
+image: docker.io/labrobotica/labrobotica:latest
 
 stages:
   - build
@@ -8,8 +8,8 @@ stages:
 build-package:
   stage: build
   script:
+    - apt update || apt -y install ca-certificates && apt update
 #  Uncomment to install dependencies
-#    - apt update
 #    - apt -y install iri-<package_name>-dev
     - mkdir -pv build
     - cd build
@@ -27,7 +27,7 @@ update_repo:
   script:
     - cd build
     - "scp -i /root/.ssh/iriLabKeyNopwd -r *iriutils*.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 iriutils"
+    - "ssh irilabo@labrepo.iri.upc.edu -i /root/.ssh/iriLabKeyNopwd -tt /home/irilabo/repo_scripts/update_repo.sh iriutils $(lsb_release -cs)"
   only:
     - tags