diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..a696f6f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,10 @@ +image: shockrah/website:latest + +variables: + SSH_PASS: $VPS_PASS + +deploy: + stage: build + script: + - bash ./build.sh + - ls -R .mirror diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..d5f98e5 --- /dev/null +++ b/build.sh @@ -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