blog/.gitlab-ci.yml

15 lines
378 B
YAML
Raw Normal View History

2020-10-26 20:02:13 +00:00
image: shockrah/website:1.2
2020-10-30 02:58:26 +00:00
#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
2020-10-30 02:58:26 +00:00
- 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/