blog/.gitlab-ci.yml

15 lines
333 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
- ssh root@shockrah.xyz "rm -rf /var/www/website"
- scp -r .mirror root@shockrah.xyz:/var/www/website/