0efef82af8
- Refactor build script - Add python script to check if package exists in apt repo - Refactor woodpecker-ci config - Update makedeb
24 lines
708 B
YAML
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"
|
|
|