From 426a3fed88482d3fde6ae78d586bfc6f9e2c8c15 Mon Sep 17 00:00:00 2001 From: shockrah Date: Mon, 26 Oct 2020 01:44:15 -0700 Subject: [PATCH] attempting a test push to prod server --- .gitlab-ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dc7bdd2..89b8bb9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,14 @@ image: shockrah/website:1.1 -variables: - SSH_PASS: $VPS_PASS +before_script: + - eval $(ssh-agent -s) + - echo $SSH_PRIVATE_KEY | tr -d '\r' | ssh-add - > /dev/null + - mkdir -p ~/.ssh/ + - chmod 700 ~/.ssh/ deploy: stage: build script: - bash ./build.sh - - ls -R .mirror + - echo the next item will fail + - scp -o StrictHostKeyChecking=no -r ./$MIRROR/ root@shockrah.xyz:/var/wwww/website