* removing deployment to old vps

This commit is contained in:
shockrah 2021-12-17 19:56:17 -08:00
parent 13b01d8d00
commit 53691d4f5d

View File

@ -22,29 +22,3 @@ build:
only: only:
- master - master
vps:
image: shockrah/website:latest
stage: vps
only:
refs:
- master
needs:
- build
dependencies:
- build
# setup ssh environment first
before_script:
- eval $(ssh-agent -s)
- echo "${SSH_PRIVATE_KEY}" | ssh-add - > /dev/null
- mkdir -p ~/.ssh/
- chmod 700 ~/.ssh/
- ssh-keyscan shockrah.xyz 2>&1 >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
script:
- ssh web@shockrah.xyz "rm -rf /var/www/resume"
- scp -r public/ web@shockrah.xyz:/var/www/resume