skeleton build script to deploy to shockrah.xyz :D
This commit is contained in:
parent
7002f8ec26
commit
ff9ded02a2
10
.gitlab-ci.yml
Normal file
10
.gitlab-ci.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
image: shockrah/website:latest
|
||||||
|
|
||||||
|
variables:
|
||||||
|
SSH_PASS: $VPS_PASS
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- bash ./build.sh
|
||||||
|
- ls -R .mirror
|
10
build.sh
Normal file
10
build.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# First scaffold
|
||||||
|
gensite -s
|
||||||
|
# Second root pages/resources
|
||||||
|
for f in pages/*.md; do gensite -r $f;done
|
||||||
|
for f in root/*; do gensite -R $f ;done
|
||||||
|
# Third the posts
|
||||||
|
for post in posts/*.md; do gensite -p $f;done
|
||||||
|
# Finally the notes
|
||||||
|
for note in notes/*.md; do gensite -P $f;done
|
Loading…
Reference in New Issue
Block a user