From b5ae149716cb5d0aa3b05438954fe39e9f143d19 Mon Sep 17 00:00:00 2001 From: Ariejan de Vroom Date: Fri, 31 Aug 2018 16:37:47 +0200 Subject: [PATCH] Explicitly test ssh --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 83c7b70..41f1738 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,6 +27,7 @@ pages: - ssh-keyscan -H 'mail.devroom.io' >> ~/.ssh/known_hosts - rsync --version - hugo version + - ssh -q ariejan@mail.devroom.io exit; echo $? script: # Compile @@ -44,7 +45,7 @@ pages: # Deploy - cd "$CI_PROJECT_DIR" - - rsync -az4 -e 'ssh -i ~/.ssh/id_rsa' --stats --delete-after public/* ariejan@mail.devroom.io:/home/ariejan/www/devroom.io/ + - rsync -az4 -e 'ssh -i ~/.ssh/id_rsa -l ariejan' --stats --delete-after public/* mail.devroom.io:/home/ariejan/www/devroom.io/ artifacts: paths: - public