From d3bdf696b7f937953f214636035b6bea66f8b83e Mon Sep 17 00:00:00 2001 From: shockrah Date: Mon, 26 Oct 2020 01:47:27 -0700 Subject: [PATCH] avoid trimming last line of private key --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 89b8bb9..f95c659 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ image: shockrah/website:1.1 before_script: - eval $(ssh-agent -s) - - echo $SSH_PRIVATE_KEY | tr -d '\r' | ssh-add - > /dev/null + - echo "${SSH_PRIVATE_KEY}" | tr -d '\r' | ssh-add - > /dev/null - mkdir -p ~/.ssh/ - chmod 700 ~/.ssh/