From 96c94634a6e58b934949b488379f34b385e53949 Mon Sep 17 00:00:00 2001 From: leafee98 Date: Sat, 14 Dec 2024 13:43:18 +0800 Subject: [PATCH] Edit woodpecker ci to migrate to 3.0.0 --- .woodpecker/deploy.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.woodpecker/deploy.yml b/.woodpecker/deploy.yml index b6ca26c..65934bb 100644 --- a/.woodpecker/deploy.yml +++ b/.woodpecker/deploy.yml @@ -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 ]