blog/.build.yml

24 lines
593 B
YAML

image: debian/testing
packages:
- hugo
- rsync
secrets:
- 858d8c0b-0473-4b63-97b2-8d54f44538f8
sources:
- https://git.sr.ht/~sergiodj/blog
tasks:
- setup: |
/usr/bin/hugo env
- build: |
cd blog
/usr/bin/hugo --verbose
- deploy: |
sshopts="ssh -p 6722 -o StrictHostKeyChecking=no"
cd blog
/usr/bin/rsync --verbose --compress --archive --recursive \
--progress --checksum --delete --rsh="$sshopts" \
public/* blog@sergiodj.net:~/blog.sergiodj.net/
triggers:
- action: email
condition: failure
to: sergiodj@sergiodj.net