debian-packages/.woodpecker/build.yml
leafee98 0efef82af8 Refactor project struct
- Refactor build script
- Add python script to check if package exists in apt repo
- Refactor woodpecker-ci config
- Update makedeb
2023-08-17 16:52:08 +08:00

24 lines
708 B
YAML

steps:
- name: build_all
image: debian-pack:0.4
secrets:
- WEBDAV_USER
- WEBDAV_PASS
- WEBDAV_HOST
- WEBDAV_REPOPATH
commands:
- rm /tmp/apt-file-exists-cache.json
- hook_str="$(realpath ./script/package_exists.py)
--filename {}
--cache-file /tmp/apt-file-exists-cache.json
--package-arch amd64
--apt-base https://dufs.leafee98.com/apt/"
- ./script/build_all.sh
--package packages/dufs-bin
--makedeb-path makedeb/makedeb
--package-exists-hook "$hook_str"
--upload-to-webdav "https://dufs.leafee98.com/apt/income"
--webdav-user "$WEBDAV_USER"
--webdav-pass "$WEBDAV_PASS"