Explicitly test ssh

This commit is contained in:
Ariejan de Vroom 2018-08-31 16:37:47 +02:00
parent ba77e7540c
commit b5ae149716
Signed by: ariejan
GPG Key ID: AD739154F713697B

View File

@ -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