debian-packages/.woodpecker/build.yml
leafee98 a974288784
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Fix woodpecker ci syntax of using secrets
2024-12-14 13:37:26 +08:00

32 lines
935 B
YAML

steps:
- name: build_all
image: debian-pack:0.4
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
--makedeb-path makedeb/makedeb
--package-exists-hook "
$(realpath ./script/package_exists.py)
--filename {}
--cache-file /tmp/apt-file-exists-cache.json
--package-arch amd64
--apt-base $APT_BASE
"
--webdav-url "$WEBDAV_UPLOAD_TARGET"
--webdav-user "$WEBDAV_USER"
--webdav-pass "$WEBDAV_PASS"
--package-dir packages/bin
--package-dir packages/leafee98