From 66fac0412acab8a3b3824ecd565becf0a6412198 Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 29 Oct 2020 20:38:47 -0700 Subject: [PATCH] this is probably super not kosher but whatever --- .gitlab-ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 88c5bfd..515e1fb 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/ + - 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 -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/ + - ssh -o StrictHostKeyChecking=no root@shockrah.xyz "rm -rf /var/www/website" + - scp -o StrictHostKeyChecking=no -r .mirror root@shockrah.xyz:/var/www/website/