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
event: push
image: 'myhugo:0.3'
environment:
http_user:
from_secret: http_user
http_pass:
from_secret: http_pass
http_endpoint:
from_secret: http_endpoint
commands:
- 'hugo'
- '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)'
- 'echo "$response"'
- 'test "$response" = "Success"'
secrets: [ http_user, http_pass, http_endpoint ]