- REmoving VPS deployment since hugo isn't playing ball
This commit is contained in:
parent
b4d3b3ab44
commit
05166a84c8
@ -18,26 +18,6 @@ stages:
|
||||
# paths:
|
||||
# - build/
|
||||
|
||||
vps-website:
|
||||
image: shockrah/website:latest
|
||||
stage: deploy
|
||||
before_script:
|
||||
- eval "$(ssh-agent -s)"
|
||||
- echo "${SSH_PRIVATE_KEY}" | ssh-add - > /dev/null
|
||||
- mkdir -p ~/.ssh/
|
||||
- chmod 700 ~/.ssh/
|
||||
- ssh-keyscan $VPS_HOST 2>&1 >> ~/.ssh/known_hosts
|
||||
- chmod 644 ~/.ssh/known_hosts
|
||||
- git submodule init
|
||||
- git submodule update
|
||||
script:
|
||||
# Build then upload
|
||||
- cd gitpage/
|
||||
- sed -i 's/\.gitlab\.io\/clippable/\.xyz/g' config.toml
|
||||
- hugo
|
||||
- cd ../
|
||||
- ssh root@shockrah.xyz "rm -rf /var/www/clippable"
|
||||
- scp -r gitpage/public/ root@shockrah.xyz:/var/www/clippable
|
||||
|
||||
|
||||
pages:
|
||||
|
Loading…
Reference in New Issue
Block a user