diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1b2ebb74ca67a73f401d677602f460722bd63eee..856e5155b5d6f3bf2addddb6df1602787d254d75 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,9 +6,9 @@ before_script:
   - python3 -V                                   # Print out python version for debugging
 
 stages:
+  - deploy
   - build
   - test
-  - deploy
 
 
 navipy_install:
@@ -32,8 +32,8 @@ doc_build:
   stage: deploy
   before_script:
   - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
-  - 'which sshpass || apt-get install sshpass'
-  - 'which rsync || apt-get install rsync'
+  - 'which sshpass || apt-get install sshpass -y'
+  - 'which rsync || apt-get install rsync -y'
   - mkdir -p ~/.ssh
   - eval $(ssh-agent -s)
   - '[[ -f /.dockerenv ]] && echo -e "Host *ntStrictHostKeyChecking nonn" > ~/.ssh/config'