leafee98-blog/.woodpecker/deploy.yml

12 lines
441 B
YAML
Raw Normal View History

2024-03-04 06:07:34 +00:00
steps:
2023-03-31 13:27:44 +00:00
build:
2023-03-31 14:19:16 +00:00
image: 'myhugo:0.3'
2023-03-31 13:27:44 +00:00
commands:
2023-03-31 14:19:16 +00:00
- 'hugo'
- 'find public -mindepth 1 -not -type d -printf "%P\n" > /tmp/filelist'
- 'tar -cf public.tar.gz --gzip -C public -T /tmp/filelist'
- 'response=$(curl --silent --user $HTTP_USER:$HTTP_PASS --data-binary @public.tar.gz $HTTP_ENDPOINT)'
- 'echo "$response"'
- 'test "$response" = "Success"'
secrets: [ http_user, http_pass, http_endpoint ]