2020-10-26 20:02:13 +00:00
|
|
|
image: shockrah/website:1.2
|
2020-10-26 07:51:40 +00:00
|
|
|
|
2020-10-30 03:39:28 +00:00
|
|
|
before_script:
|
2020-10-30 03:38:47 +00:00
|
|
|
- eval $(ssh-agent -s)
|
|
|
|
- echo "${SSH_PRIVATE_KEY}" | ssh-add - > /dev/null
|
|
|
|
- mkdir -p ~/.ssh/
|
|
|
|
- chmod 700 ~/.ssh/
|
2020-10-26 07:51:40 +00:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- bash ./build.sh
|
2020-10-30 03:38:47 +00:00
|
|
|
- ssh -o StrictHostKeyChecking=no root@shockrah.xyz "rm -rf /var/www/website"
|
|
|
|
- scp -o StrictHostKeyChecking=no -r .mirror root@shockrah.xyz:/var/www/website/
|