Edit woodpecker ci to migrate to 3.0.0
Some checks failed
ci/woodpecker/push/deploy Pipeline failed

This commit is contained in:
leafee98 2024-12-14 13:43:18 +08:00
parent 9697bf6b39
commit 96c94634a6

View file

@ -4,6 +4,13 @@ steps:
- branch: main - branch: main
event: push event: push
image: 'myhugo:0.3' image: 'myhugo:0.3'
environment:
http_user:
from_secret: http_user
http_pass:
from_secret: http_pass
http_endpoint:
from_secret: http_endpoint
commands: commands:
- 'hugo' - 'hugo'
- 'find public -mindepth 1 -not -type d -printf "%P\n" > /tmp/filelist' - 'find public -mindepth 1 -not -type d -printf "%P\n" > /tmp/filelist'
@ -11,4 +18,3 @@ steps:
- 'response=$(curl --silent --user $HTTP_USER:$HTTP_PASS --data-binary @public.tar.gz $HTTP_ENDPOINT)' - 'response=$(curl --silent --user $HTTP_USER:$HTTP_PASS --data-binary @public.tar.gz $HTTP_ENDPOINT)'
- 'echo "$response"' - 'echo "$response"'
- 'test "$response" = "Success"' - 'test "$response" = "Success"'
secrets: [ http_user, http_pass, http_endpoint ]