From 25ea49e28aabfd771d393ac659c5ac8e86aa6504 Mon Sep 17 00:00:00 2001 From: /dev/urandom Date: Sun, 14 Nov 2021 17:30:18 +0300 Subject: [PATCH] replaced ssh-agent with a file (also thx to @0x0a_fox) --- .gitlab-ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 375feac..fed15a5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,9 +27,8 @@ deploy-job: # This job runs in the deploy stage. before_script: - echo "Installing the dependencies..." - apk add rsync openssh-client - - mkdir -p ~/.ssh - - chmod 700 ~/.ssh - - eval $(ssh-agent -s) - - echo "$DEPLOY_PRIVATE_KEY" | tr -d '\r' | ssh-add - + - mkdir -m 700 -p ~/.ssh + - echo "$DEPLOY_PRIVATE_KEY" > ~/.ssh/id_rsa + - chmod 600 ~/.ssh/id_rsa script: - rsync -e "ssh -o StrictHostKeyChecking=no" -ciIlprz out/ deploy@devurandom.xyz:~/out/