debian-packages/.woodpecker/build.yml
leafee98 82734470d2
All checks were successful
ci/woodpecker/push/build Pipeline was successful
refactor package directory, enhance build script
- update makedeb
- use bin, git, normal, leafee98 to classify packages
- only build package from leafee98 and bin in ci
- add script to build all packages locally
- add more log about running hook in build.sh
2023-08-18 17:28:14 +08:00

27 lines
805 B
YAML

steps:
- name: build_all
image: debian-pack:0.4
secrets:
- WEBDAV_PASS
- WEBDAV_USER
environment:
- WEBDAV_UPLOAD_TARGET=https://dufs.leafee98.com/apt/income
- APT_BASE=https://dufs.leafee98.com/apt
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
"
--upload-to-webdav "$WEBDAV_UPLOAD_TARGET"
--webdav-user "$WEBDAV_USER"
--webdav-pass "$WEBDAV_PASS"
--package-dir packages/bin
--package-dir packages/leafee98