2021-08-28 11:28:00 +02:00
|
|
|
kind: pipeline
|
2022-08-18 16:55:27 +02:00
|
|
|
type: docker
|
2021-08-28 11:28:00 +02:00
|
|
|
name: mondrianwifi
|
|
|
|
|
2022-08-18 16:55:27 +02:00
|
|
|
environment:
|
|
|
|
device: mondrianwifi
|
2022-09-25 14:45:49 +02:00
|
|
|
version: 20.0
|
2021-08-31 10:01:46 +02:00
|
|
|
|
|
|
|
steps:
|
2022-08-22 22:55:41 +02:00
|
|
|
- name: sync
|
|
|
|
pull: always
|
|
|
|
image: docker.nyyu.dev/lineage/android:latest
|
|
|
|
commands:
|
|
|
|
- cd /build
|
|
|
|
- rm -rf .repo/repo
|
|
|
|
- repo init -u https://github.com/LineageOS-UL/android.git -b lineage-$version
|
|
|
|
- mkdir -p .repo/local_manifests
|
|
|
|
- cp $DRONE_WORKSPACE_BASE/$device.xml .repo/local_manifests/roomservice.xml
|
|
|
|
- bash $DRONE_WORKSPACE_BASE/sync.sh
|
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
path: /build
|
2022-08-18 16:55:27 +02:00
|
|
|
- name: build
|
2022-08-22 22:55:41 +02:00
|
|
|
pull: always
|
|
|
|
image: docker.nyyu.dev/lineage/android:latest
|
|
|
|
commands:
|
|
|
|
- cd /build
|
|
|
|
- bash -c ". build/envsetup.sh && lunch lineage_$device-userdebug && mka bacon -j6"
|
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
path: /build
|
2022-11-30 22:24:05 +01:00
|
|
|
- name: tools
|
|
|
|
path: /tools
|
2022-08-22 22:55:41 +02:00
|
|
|
- name: copy
|
|
|
|
pull: always
|
|
|
|
image: docker.nyyu.dev/lineage/android:latest
|
|
|
|
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-$device-$version.md >> /http/changelog-$device-$version.md
|
|
|
|
- ls -lh /http/lineage-$version-*-UNOFFICIAL-$device.zip*
|
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
path: /build
|
|
|
|
- name: http
|
|
|
|
path: /http
|
|
|
|
- name: clean
|
|
|
|
pull: always
|
|
|
|
image: docker.nyyu.dev/lineage/android:latest
|
|
|
|
commands:
|
|
|
|
- rm -f /build/out/target/product/$device/lineage-$version-*-UNOFFICIAL-$device.zip_* /build/out/target/product/$device/lineage_$device-ota-eng.*.zip
|
|
|
|
- rm -f /build/changelog-$device-$version.md
|
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
path: /build
|
2021-08-31 10:01:46 +02:00
|
|
|
trigger:
|
|
|
|
event:
|
2022-08-22 22:55:41 +02:00
|
|
|
- custom
|
|
|
|
- cron
|
2021-08-31 10:01:46 +02:00
|
|
|
|
2022-08-18 16:55:27 +02:00
|
|
|
volumes:
|
2022-08-22 22:55:41 +02:00
|
|
|
- name: http
|
|
|
|
host:
|
|
|
|
path: /srv/http/drone
|
|
|
|
- name: build
|
|
|
|
host:
|
2022-09-25 14:45:49 +02:00
|
|
|
path: /media/fast/lineage/lineage-20.0
|
2022-11-30 22:24:05 +01:00
|
|
|
- name: tools
|
|
|
|
host:
|
|
|
|
path: /media/fast/lineage/tools
|
2021-08-31 10:01:46 +02:00
|
|
|
|
2022-08-18 16:55:27 +02:00
|
|
|
image_pull_secrets:
|
2022-08-22 22:55:41 +02:00
|
|
|
- dockerconfig
|
2022-08-18 16:55:27 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2021-08-28 11:28:00 +02:00
|
|
|
name: mondrianwifi-publish
|
|
|
|
|
2022-08-18 16:55:27 +02:00
|
|
|
environment:
|
|
|
|
device: mondrianwifi
|
2022-09-25 14:45:49 +02:00
|
|
|
version: 20.0
|
2021-08-28 11:28:00 +02:00
|
|
|
|
|
|
|
steps:
|
2022-08-18 16:55:27 +02:00
|
|
|
- name: publish
|
2022-08-22 22:55:41 +02:00
|
|
|
pull: always
|
|
|
|
image: docker.nyyu.dev/lineage/android:latest
|
|
|
|
commands:
|
|
|
|
- mv /http/lineage-$version-*-UNOFFICIAL-$device.zip* /publish/$version/$device/
|
|
|
|
- cat /http/changelog-$device-$version.md >> /publish/$version/$device/changelog.md
|
|
|
|
- rm -f /http/changelog-$device-$version.md
|
|
|
|
- ls -lh /publish/$version/$device/
|
|
|
|
volumes:
|
|
|
|
- name: http
|
|
|
|
path: /http
|
|
|
|
- name: publish
|
|
|
|
path: /publish
|
2021-08-28 11:28:00 +02:00
|
|
|
trigger:
|
|
|
|
event:
|
2022-08-22 22:55:41 +02:00
|
|
|
- promote
|
2022-08-18 16:55:27 +02:00
|
|
|
|
|
|
|
volumes:
|
2022-08-22 22:55:41 +02:00
|
|
|
- name: http
|
|
|
|
host:
|
|
|
|
path: /srv/http/drone
|
|
|
|
- name: publish
|
|
|
|
host:
|
|
|
|
path: /mnt/android/lineage
|
2022-08-18 16:55:27 +02:00
|
|
|
|
|
|
|
image_pull_secrets:
|
2022-08-22 22:55:41 +02:00
|
|
|
- dockerconfig
|