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: |
|
2023-04-17 18:55:26 +00:00
|
|
|
sshopts="ssh -p 6722 -o StrictHostKeyChecking=no"
|
2023-04-17 18:52:10 +00:00
|
|
|
cd blog
|
|
|
|
/usr/bin/rsync --verbose --compress --archive --recursive \
|
2023-04-17 19:49:46 +00:00
|
|
|
--progress --checksum --delete --rsh="$sshopts" \
|
2023-04-18 16:30:35 +00:00
|
|
|
public/* blog@sergiodj.net:~/blog.sergiodj.net/
|
2023-04-17 17:57:43 +00:00
|
|
|
triggers:
|
|
|
|
- action: email
|
|
|
|
condition: failure
|
|
|
|
to: sergiodj@sergiodj.net
|