From 4e7085e82e7aa48b8bc404fd7926b673fc425cdf Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Tue, 17 Nov 2020 16:23:51 -0700 Subject: rework around cactus-ssg --- .build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .build.yml (limited to '.build.yml') diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..130204f --- /dev/null +++ b/.build.yml @@ -0,0 +1,22 @@ +image: alpine/latest +packages: + - python3-pip + - rsync +sources: + - https://git.sr.ht/~boringcactus/boringcactus.com + - https://git.sr.ht/~boringcactus/cactus-ssg +environment: + deploy: services@boringcactus.com +secrets: + - b5cb9b2b-1461-4486-95e1-886451674a89 +tasks: + - install: | + cd cactus-ssg + python3 -m pip install -r requirements.txt + - build: | + cd boringcactus.com + python3 ../cactus-ssg/build.py + - deploy: | + cd boringcactus.com + rsync -rP _site/html/ $deploy:/var/www/html/www.boringcactus.com/ + rsync -rP _site/gmi/ $deploy:/var/gemini/gmi/boringcactus.com/ -- cgit v1.2.3