update ssh key config
This commit is contained in:
parent
e5dbf997e5
commit
d252a766b4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user