Add ssh config to deploy
This commit is contained in:
parent
59de095131
commit
66ef8b9d1f
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,9 @@ deploy:
|
||||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- chmod 700 ~/.ssh
|
- chmod 700 ~/.ssh
|
||||||
|
- touch ~/.ssh/config
|
||||||
|
- chmod 644 ~/.ssh/config
|
||||||
|
- echo "$SSH_CONFIG" > ~/.ssh/config
|
||||||
script:
|
script:
|
||||||
- ssh blog -o StrictHostKeyChecking=no "/home/gaugendre/blog/update"
|
- ssh blog -o StrictHostKeyChecking=no "/home/gaugendre/blog/update"
|
||||||
only:
|
only:
|
||||||
|
|
Reference in a new issue