build/.drone.yml

70 lines
1.5 KiB
YAML
Raw Normal View History

2021-08-28 11:28:00 +02:00
---
kind: pipeline
type: exec
name: mondrianwifi
2021-08-31 10:01:46 +02:00
platform:
os: linux
arch: amd64
steps:
- name: sync
commands:
- source $DRONE_HOME/${DRONE_STAGE_NAME}.env
- cd $work
- repo init -u git://github.com/LineageOS/android.git -b lineage-$version
- mkdir -p .repo/local_manifests
- cp $DRONE_HOME/$device.xml .repo/local_manifests/roomservice.xml
- repo sync -q -c -j 6 --fail-fast --force-sync --no-tags
- name: build
shell: /bin/bash
commands:
- source $DRONE_HOME/${DRONE_STAGE_NAME}.env
- cd $work
- . build/envsetup.sh
- lunch lineage_$device-userdebug
- mka bacon -j8
- name: copy
commands:
- source $DRONE_HOME/${DRONE_STAGE_NAME}.env
- cd $work
2021-11-14 18:40:19 +01:00
- rm -f $httpdir/lineage-$version-*-UNOFFICIAL-$device.zip{,.sha256sum}
- mv -f out/target/product/$device/lineage-$version-*-UNOFFICIAL-$device.zip{,.sha256sum} $httpdir/
- ls -lh $httpdir/lineage-$version-*-UNOFFICIAL-$device.zip{,.sha256sum}
2021-08-31 10:01:46 +02:00
- name: clean
commands:
- source $DRONE_HOME/${DRONE_STAGE_NAME}.env
- cd $work
- rm -f out/target/product/$device/lineage-$version-*-UNOFFICIAL-$device.zip_* out/target/product/$device/lineage_$device-ota-eng.*.zip
trigger:
event:
2021-09-03 21:51:40 +02:00
- push
2021-08-31 10:01:46 +02:00
- custom
2021-09-03 21:51:40 +02:00
- cron
2021-08-31 10:01:46 +02:00
---
2021-08-28 11:28:00 +02:00
kind: pipeline
type: exec
name: mondrianwifi-publish
platform:
os: linux
arch: amd64
steps:
- name: publish
commands:
- source $DRONE_HOME/mondrianwifi.env
- cd $httpdir
2021-11-14 18:40:19 +01:00
- mv lineage-$version-*-UNOFFICIAL-$device.zip{,.sha256sum} $publishdir/
2021-08-28 11:28:00 +02:00
- ls -lh $publishdir/
trigger:
event:
- promote