diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 512308eacf137ed7d111693456cf6f611b794010..85a9567435125b08aefa196957072778253c3500 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,4 @@
-image: ubuntu:precise
+image: ubuntu:xenial
 
 cache:
   paths:
@@ -27,6 +27,7 @@ deploy:
   dependencies:
     - build
   script:
+    - apt-get install -y --force-yes rsync
     - scp -r output/* mazenod@192.168.100.59:~/public_html/
-    - ssh mazenod@192.168.100.59 'find ~/public_html/ -type f -exec chmod -R 644 {} \;'
-    - ssh mazenod@192.168.100.59 'find ~/public_html/ -type d -exec chmod -R 755 {} \;'
+    - rsync -az --exclude '_' -e ssh output/ mazenod@192.168.100.59:~/public_html/
+    - rsync -az --exclude '_' -e ssh output/ $USERNAME@$HOST:~/public_html/