* using my own vps instead of pages because it enver updates
This commit is contained in:
parent
aaf684342d
commit
71c0088385
@ -1,6 +1,7 @@
|
||||
image: rustlang/rust:nightly
|
||||
stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
# Builds out the intended zip package
|
||||
package:
|
||||
@ -18,15 +19,22 @@ package:
|
||||
paths:
|
||||
- build/
|
||||
|
||||
website:
|
||||
image:
|
||||
name: klakegg/hugo:ext-alpine
|
||||
entrypoint: [""]
|
||||
stage: build
|
||||
upload-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
|
||||
|
||||
script:
|
||||
- cd gitpage
|
||||
# Build then upload
|
||||
- cd gitpage/
|
||||
- hugo
|
||||
- mv public/ ..
|
||||
artifacts:
|
||||
paths:
|
||||
- public/
|
||||
- cd ../
|
||||
- ssh root@shockrah.xyz "rm -rf /var/www/clippable"
|
||||
- scp -r gitpage/public/ root@shockrah.xyz:/var/www/clippable
|
||||
|
||||
|
5
scripts/nginx.conf
Normal file
5
scripts/nginx.conf
Normal file
@ -0,0 +1,5 @@
|
||||
server {
|
||||
root /var/www/clippable;
|
||||
index index.html;
|
||||
server_name clippable.shockrah.xyz;
|
||||
}
|
Loading…
Reference in New Issue
Block a user