CI: Tweak ssh priv. key setup

This commit is contained in:
Ariejan de Vroom 2015-12-10 10:27:25 +01:00
parent b6726e397a
commit 2db39e8953

View File

@ -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'