blog/.gitlab-ci.yml
2020-10-26 01:47:27 -07:00

15 lines
359 B
YAML

image: shockrah/website:1.1
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
- echo the next item will fail
- scp -o StrictHostKeyChecking=no -r ./$MIRROR/ root@shockrah.xyz:/var/wwww/website