Update .gitlab-ci.yml

This commit is contained in:
Ryuuji
2020-06-02 08:14:09 +00:00
parent 6b4b265c46
commit d91492f046

View File

@@ -7,10 +7,9 @@ cache:
before_script:
- apt-get update -y && apt-get upgrade -y
- apt-get install rsync -y
- 'which ssh-agent || ( apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- echo -e "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
test_execution: