Run ssh-agent
This commit is contained in:
parent
eec8b982eb
commit
81a96fbf34
@ -9,9 +9,11 @@ deploy:
|
|||||||
- apt-get update -y
|
- apt-get update -y
|
||||||
- apt-get -y install rsync
|
- apt-get -y install rsync
|
||||||
- gem install jekyll
|
- gem install jekyll
|
||||||
|
- eval $(ssh-agent -s)
|
||||||
script:
|
script:
|
||||||
- jekyll build -d public
|
- 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:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
Reference in New Issue
Block a user