blog/.woodpecker.yml

18 lines
573 B
YAML
Raw Normal View History

2023-02-04 07:04:29 +00:00
pipeline:
build:
2023-02-04 07:08:47 +00:00
image: klakegg/hugo:ext-pandoc-ci
2023-02-04 07:04:29 +00:00
commands:
- hugo --minify --baseURL https://mzhang.io
deploy:
image: alpine
commands:
2023-02-04 07:11:56 +00:00
- apk add rsync openssh
2023-02-04 07:04:29 +00:00
- echo "$SSH_SECRET_KEY" > SSH_SECRET_KEY
2023-02-04 07:12:21 +00:00
- chmod 600 SSH_SECRET_KEY
2023-02-04 07:10:28 +00:00
- mkdir -p ~/.ssh
2023-02-04 07:04:29 +00:00
- echo "mzhang.io ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBzBZ+QmM4EO3Fwc1ZcvWV2IY9VF04T0H9brorGj9Udp" >> ~/.ssh/known_hosts
- rsync -azvrP -e "ssh -i SSH_SECRET_KEY" public/ sourcehutBuilds@mzhang.io:/mnt/storage/svcdata/blog-public
when:
branch: master