blog/.gitlab-ci.yml
shockrah f2b1afe7d1 removing old files on master update
updated links page with new domain
2020-10-29 18:31:27 -07:00

16 lines
420 B
YAML

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/
deploy:
stage: build
script:
- bash ./build.sh
- echo the next item will fail
- sshpass -p $SHH_PASS ssh "rm -rf /var/www/website"
- sshpass -p $SSH_PASS scp -o StrictHostKeyChecking=no -r .mirror root@shockrah.xyz:/var/www/website/