24 lines
525 B
YAML
24 lines
525 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: |
|
||
|
cd blog
|
||
|
/usr/bin/rsync --verbose --compress --archive --recursive \
|
||
|
--progress --checksum --rsh="ssh -p 6722" \
|
||
|
public/ blog@sergiodj.net:/home/blog/blog.sergiodj.net/
|
||
|
triggers:
|
||
|
- action: email
|
||
|
condition: failure
|
||
|
to: sergiodj@sergiodj.net
|