From 46a123d5b8ac233a86efc51ceaf1d36bae57b76e Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 29 Oct 2020 19:58:26 -0700 Subject: [PATCH] testing new file var --- .gitlab-ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 149ea95..88c5bfd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,14 +1,14 @@ image: shockrah/website:1.2 -before_script: - - eval $(ssh-agent -s) - - echo "${SSH_PRIVATE_KEY}" | ssh-add - > /dev/null - - mkdir -p ~/.ssh/ - - chmod 700 ~/.ssh/ +#before_script: +# - eval $(ssh-agent -s) +# - echo "${SSH_PRIVATE_KEY}" | ssh-add - > /dev/null +# - mkdir -p ~/.ssh/ +# - chmod 700 ~/.ssh/ deploy: stage: build script: - bash ./build.sh - - ssh root@shockrah.xyz "rm -rf /var/www/website" - - scp -r .mirror root@shockrah.xyz:/var/www/website/ + - ssh -i $SSH_PRIVATE_KEY root@shockrah.xyz "rm -rf /var/www/website" + - scp -i $SSH_PRIVATE_KEY -r .mirror root@shockrah.xyz:/var/www/website/