From ff9ded02a2e67c22b26e53a730616d0684b0edff Mon Sep 17 00:00:00 2001 From: shockrah Date: Mon, 26 Oct 2020 00:51:40 -0700 Subject: [PATCH] skeleton build script to deploy to shockrah.xyz :D --- .gitlab-ci.yml | 10 ++++++++++ build.sh | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 build.sh 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