diff options
author | Melody Horn <melody@boringcactus.com> | 2020-11-17 16:23:51 -0700 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2020-11-17 16:23:51 -0700 |
commit | 4e7085e82e7aa48b8bc404fd7926b673fc425cdf (patch) | |
tree | 0f2d01cc638c86f799e5e5652ea1f3f420ab4fbc /.build.yml | |
parent | 4bd4d8dab61993b7d24ee1ca147264ad761dfc68 (diff) | |
download | boringcactus.com-4e7085e82e7aa48b8bc404fd7926b673fc425cdf.tar.gz boringcactus.com-4e7085e82e7aa48b8bc404fd7926b673fc425cdf.zip |
rework around cactus-ssg
Diffstat (limited to '.build.yml')
-rw-r--r-- | .build.yml | 22 |
1 files changed, 22 insertions, 0 deletions
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/ |