2. fix use ssh in ci script

This commit is contained in:
2019-02-12 16:33:28 +01:00
parent 50c4692657
commit d014bc21f6

View File

@ -5,7 +5,7 @@ stages:
before_script:
- echo "Prepare ssh environment"
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | ssh-add
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan gitlab.com >> ~/.ssh/known_hosts