CI: Tweak ssh priv. key setup
This commit is contained in:
parent
b6726e397a
commit
2db39e8953
|
@ -4,8 +4,9 @@ before_script:
|
|||
- echo "deb http://httpredir.debian.org/debian jessie non-free" >> /etc/apt/sources.list
|
||||
- mkdir -p ~/.ssh
|
||||
- chmod 700 ~/.ssh
|
||||
- echo $SSH_PRIVATE_KEY > ~/.ssh/id_rsa
|
||||
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
||||
- chmod 600 ~/.ssh/id_rsa
|
||||
- cat ~/.ssh/id_rsa
|
||||
- cat /etc/apt/sources.list
|
||||
- apt-get update -yq
|
||||
- apt-get install -yq --no-install-recommends rsync
|
||||
|
@ -18,7 +19,6 @@ job:
|
|||
- golang
|
||||
script:
|
||||
- hugo
|
||||
- cat ~/.ssh/id_rsa
|
||||
- ssh -i ~/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ariejan@mail.devroom.io 'uptime'
|
||||
- ssh -i ~/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ariejan@mail.devroom.io 'uname -a'
|
||||
- ssh -i ~/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ariejan@mail.devroom.io 'hostname -f'
|
||||
|
|
Loading…
Reference in New Issue
Block a user