From d91492f046c86d08c24e9f33caf4fac7de39fad7 Mon Sep 17 00:00:00 2001 From: Ryuuji Date: Tue, 2 Jun 2020 08:14:09 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0dfc79b..671b8c7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: