diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0477a5a5fa4381eaad3f62f0b62238010b9da238..9552cd396eb14a53eafcde55279ca4a39c3c283a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,43 +1,32 @@
-image: docker.io/evili/labrobotica
+image: docker.io/alopeziri/labrobotica
 
-cmake-build:
+stages:
+  - build
+  - test
+  - deploy
+
+build-package:
   stage: build
   script:
-    - mkdir -pv Build
-    - cd Build
-    - cmake -D CMAKE_BUILD_TYPE=Debug ..
-    - make
+#    - apt-get update
+#    - apt-get -y --allow-unauthenticated install iri-iriutils-dev
+    - mkdir -pv build
+    - cd build
+    - cmake -D CMAKE_BUILD_TYPE=RELEASE -DCPACK_PACKAGE_VERSION=$CI_COMMIT_TAG ..
+    - make package -j $(nproc)
   artifacts:
     paths:
-      - Build/
-      - bin/
-      - lib/
+      - build/*.deb
+    expire_in: 2 weeks
+  only:
+    - tags
     
-# unit-test:
-#   stage: test
-#   script:
-#     - cd Build
-#     - ctest --timeout 15 --verbose -T test
-#     - ctest --timeout 15 --verbose -T memcheck
-#   artifacts:
-#     paths:
-#       - Build/
-
-coverage:
+update_repo:
   stage: deploy
   script:
-    - cd Build
-    - ctest --timeout 15 --verbose -T coverage
-
-pages:
-  script:
-  - cd Build
-  - apt-get update
-  - apt-get install -y ttf-freefont graphviz
-  - make doc
-  - mv ../doc/html/ ../public/
-  artifacts:
-    paths:
-    - public/
+    - cd build
+    - "scp -i /root/.ssh/iriLabKeyNopwd -r *iriutils*.deb irilabo@147.83.76.226:packages/"
+    - "ssh irilabo@147.83.76.226 -i /root/.ssh/iriLabKeyNopwd -tt /home/irilabo/repo_scripts/update_repo.sh iriutils"
   only:
-  - master
+    - tags
+