From a97428878459e939b1a68b71e189f40e90176e2f Mon Sep 17 00:00:00 2001 From: leafee98 Date: Sat, 14 Dec 2024 13:37:26 +0800 Subject: [PATCH] Fix woodpecker ci syntax of using secrets --- .woodpecker/build.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index 7232d60..07e5368 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -1,12 +1,17 @@ steps: - name: build_all image: debian-pack:0.4 - secrets: - - WEBDAV_PASS - - WEBDAV_USER + when: + - event: push + branch: main + platform: [ "linux/amd64" ] environment: WEBDAV_UPLOAD_TARGET: https://dufs.leafee98.com/apt/income APT_BASE: https://dufs.leafee98.com/apt + WEBDAV_PASS: + from_secret: WEBDAV_PASS + WEBDAV_USER: + from_secret: WEBDAV_USER commands: - rm -f /tmp/apt-file-exists-cache.json - ./script/build.sh