this is probably super not kosher but whatever

This commit is contained in:
shockrah 2020-10-29 20:38:47 -07:00
parent 46a123d5b8
commit 66fac0412a

View File

@ -1,14 +1,14 @@
image: shockrah/website:1.2 image: shockrah/website:1.2
#before_script: #before_script:
# - eval $(ssh-agent -s) - eval $(ssh-agent -s)
# - echo "${SSH_PRIVATE_KEY}" | ssh-add - > /dev/null - echo "${SSH_PRIVATE_KEY}" | ssh-add - > /dev/null
# - mkdir -p ~/.ssh/ - mkdir -p ~/.ssh/
# - chmod 700 ~/.ssh/ - chmod 700 ~/.ssh/
deploy: deploy:
stage: build stage: build
script: script:
- bash ./build.sh - bash ./build.sh
- ssh -i $SSH_PRIVATE_KEY root@shockrah.xyz "rm -rf /var/www/website" - ssh -o StrictHostKeyChecking=no root@shockrah.xyz "rm -rf /var/www/website"
- scp -i $SSH_PRIVATE_KEY -r .mirror root@shockrah.xyz:/var/www/website/ - scp -o StrictHostKeyChecking=no -r .mirror root@shockrah.xyz:/var/www/website/