update ssh key config

This commit is contained in:
Ariejan de Vroom 2018-08-31 16:22:37 +02:00
parent e5dbf997e5
commit d252a766b4
Signed by: ariejan
GPG Key ID: AD739154F713697B

View File

@ -21,11 +21,10 @@ test:
pages:
before_script:
# Setup SSH keys
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo "$SSH_SERVER_HOSTKEYS" > ~/.ssh/known_hosts'
- mkdir -p ~/.ssh # Setup SSH
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- ssh-keyscan -H 'mail.devroom.io' >> ~/.ssh/known_hosts
script:
# Compile