aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
blob: 6324daee41fcc4ac337c3daedff3d2776ef213fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
image: alpine/latest
packages:
  - py3-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 --rsh="ssh -o StrictHostKeyChecking=no" -rlt8hP --del _site/html/ $deploy:/var/www/html/www.boringcactus.com/
      rsync --rsh="ssh -o StrictHostKeyChecking=no" -rlt8hP --del _site/gmi/ $deploy:/var/gemini/gmi/boringcactus.com/