diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c7f3dce..a9b7c63 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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'