Add ssh config to deploy

This commit is contained in:
Gabriel Augendre 2020-12-26 18:09:43 +01:00
parent 59de095131
commit 66ef8b9d1f
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -14,6 +14,9 @@ deploy:
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- touch ~/.ssh/config
- chmod 644 ~/.ssh/config
- echo "$SSH_CONFIG" > ~/.ssh/config
script:
- ssh blog -o StrictHostKeyChecking=no "/home/gaugendre/blog/update"
only: