* 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
|
image: rustlang/rust:nightly
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
- deploy
|
||||||
|
|
||||||
# Builds out the intended zip package
|
# Builds out the intended zip package
|
||||||
package:
|
package:
|
||||||
@ -18,15 +19,22 @@ package:
|
|||||||
paths:
|
paths:
|
||||||
- build/
|
- build/
|
||||||
|
|
||||||
website:
|
upload-website:
|
||||||
image:
|
image: shockrah/website:latest
|
||||||
name: klakegg/hugo:ext-alpine
|
stage: deploy
|
||||||
entrypoint: [""]
|
before_script:
|
||||||
stage: build
|
- 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:
|
script:
|
||||||
- cd gitpage
|
# Build then upload
|
||||||
|
- cd gitpage/
|
||||||
- hugo
|
- hugo
|
||||||
- mv public/ ..
|
- cd ../
|
||||||
artifacts:
|
- ssh root@shockrah.xyz "rm -rf /var/www/clippable"
|
||||||
paths:
|
- scp -r gitpage/public/ root@shockrah.xyz:/var/www/clippable
|
||||||
- public/
|
|
||||||
|
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