---
image: debian/unstable
packages:
- golang-go
- hugo
- rsync
sources:
- https://git.sr.ht/~bfiedler/website
- https://git.sr.ht/~sircmpwn/openring
environment:
user: deploy
webhost: bfiedler.vsos.ethz.ch
hostkey: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMGkNr+BSfvo8i0+XGyktBac0t+IDg2J8g2HazyQuCVN
secrets:
- e7266734-d2dc-46dc-a155-4225c901c280
tasks:
- openring: |
cd openring
go build -o openring
- build: |
cd website
../openring/openring \
-s https://blog.antei.de/feed.rss \
-s https://blog.golang.org/feed.atom \
-s https://christine.website/blog.rss \
-s https://drewdevault.com/blog/index.xml \
-s https://emersion.fr/blog/rss.xml \
-s https://j.njsm.de/blog/index.xml \
-s https://raymii.org/s/feed.xml \
-s https://sourcehut.org/blog/index.xml \
< external/openring.in.html \
> layouts/partials/openring.html
hugo --minify
- upload: |
mkdir -p $HOME/.ssh
echo $webhost $hostkey > $HOME/.ssh/known_hosts
cd website
rsync -rdP public/ $user@$webhost: