use woodpecker to deploy blog

This commit is contained in:
leafee98 2023-03-31 21:27:44 +08:00
parent fa238a5c54
commit 0c16990e4f

8
.woodpecker/deploy.yml Normal file
View file

@ -0,0 +1,8 @@
pipeline:
build:
image: docker.io/gohugoio/hugo
commands:
- /usr/bin/hugo
- find public -mindepth 1 -not -type d -printf "%P\n" | tar -cf public.tar.gz --gzip -C public -T -
- curl --user ${http_user}:${http_pass} --binary-data public.tar.gz ${http_endpoint}