build/.woodpecker/.copy.yml

46 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2023-01-07 01:08:26 +01:00
variables:
- &build_vol '/media/fast/lineage/lineage-20.0:/build'
- &http_vol '/srv/http/drone:/http'
2023-01-07 01:08:26 +01:00
matrix:
include:
- device: mondrianwifi
version: 20.0
- device: mondrianlte
version: 20.0
2023-01-07 01:08:26 +01:00
skip_clone: true
pipeline:
copy:
pull: true
image: alpine
commands:
- rm -f /http/lineage-$version-*-UNOFFICIAL-$device.zip*
- mv -f /build/out/target/product/$device/lineage-$version-*-UNOFFICIAL-$device.zip* /http/
- cat /build/changelog-mondrian-$version.md >> /http/changelog-$device-$version.md
- ls -lh /http/lineage-$version-*-UNOFFICIAL-$device.zip*
2023-01-07 01:08:26 +01:00
volumes:
- *build_vol
- *http_vol
2023-01-07 01:08:26 +01:00
when:
event:
- manual
- cron
2023-01-07 01:08:26 +01:00
clean:
pull: true
image: alpine
commands:
- rm -f /build/out/target/product/$device/lineage-$version-*-UNOFFICIAL-$device.zip_* /build/out/target/product/$device/lineage_$device-ota-eng.*.zip
- rm -rf /build/out/target/product/$device/obj/PACKAGING/target_files_intermediates/*
- rm -f /build/changelog-$device-$version.md
2023-01-07 01:08:26 +01:00
volumes:
- *build_vol
2023-01-07 01:08:26 +01:00
when:
event:
- manual
- cron
2023-01-07 01:08:26 +01:00
depends_on:
- changelog