diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index efab4aa8e4f528fdd7649c2834b9fd1146e331f6..b25a6435264a73925092e84af8467a99f23e2101 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
   - test
   - build
-  - deploy
 
 navipy_install:
   stage: build
@@ -34,7 +34,7 @@ doc_build:
   - mkdir -p ~/.ssh
   - eval $(ssh-agent -s)
   - '[[ -f /.dockerenv ]] && echo -e "Host *ntStrictHostKeyChecking nonn" > ~/.ssh/config'
-  - ssh-add <(echo "$STAGING_PRIVATE_KEY")
+  - sshpass -p $PASS_SSH ssh-add <(echo "$STAGING_PRIVATE_KEY")
   - apt-get install rsync
   
   script: