Run ssh-agent

This commit is contained in:
Stu Sherwin 2018-08-21 18:33:22 +01:00
parent eec8b982eb
commit 81a96fbf34
1 changed files with 3 additions and 1 deletions

View File

@ -9,9 +9,11 @@ deploy:
- apt-get update -y
- apt-get -y install rsync
- gem install jekyll
- eval $(ssh-agent -s)
script:
- jekyll build -d public
- rsync -avz --delete --no-group -e 'ssh -o StrictHostKeyChecking=no' ./dist/ $SERVER_USER@autonomic.zone:/var/www/autonomic.zone/html/
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- rsync -avz --delete --no-group -e 'ssh -o StrictHostKeyChecking=no' ./dist/ "$SERVER_USER"@autonomic.zone:/var/www/autonomic.zone/html/
artifacts:
paths:
- public