update ssh key config
This commit is contained in:
parent
e5dbf997e5
commit
d252a766b4
|
@ -21,11 +21,10 @@ test:
|
||||||
pages:
|
pages:
|
||||||
before_script:
|
before_script:
|
||||||
# Setup SSH keys
|
# Setup SSH keys
|
||||||
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
|
- mkdir -p ~/.ssh # Setup SSH
|
||||||
- eval $(ssh-agent -s)
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
|
||||||
- ssh-add <(echo "$SSH_PRIVATE_KEY")
|
- chmod 600 ~/.ssh/id_rsa
|
||||||
- mkdir -p ~/.ssh
|
- ssh-keyscan -H 'mail.devroom.io' >> ~/.ssh/known_hosts
|
||||||
- '[[ -f /.dockerenv ]] && echo "$SSH_SERVER_HOSTKEYS" > ~/.ssh/known_hosts'
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# Compile
|
# Compile
|
||||||
|
|
Loading…
Reference in New Issue
Block a user