blog/.build.yml

25 lines
592 B
YAML
Raw Normal View History

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