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
|
|
|
|
version: 19.1
|
2021-08-31 10:01:46 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: sync
|
2022-08-18 16:55:27 +02:00
|
|
|
pull: always
|
|
|
|
image: docker.nyyu.dev/lineage/android:latest
|
2021-08-31 10:01:46 +02:00
|
|
|
commands:
|
2022-08-18 16:55:27 +02:00
|
|
|
- cd /build
|
|
|
|
- rm -rf .repo/repo
|
|
|
|
- repo init -u https://github.com/LineageOS-UL/android.git -b lineage-$version
|
2021-08-31 10:01:46 +02:00
|
|
|
- mkdir -p .repo/local_manifests
|
2022-08-18 16:55:27 +02:00
|
|
|
- cp $DRONE_WORKSPACE_BASE/$device.xml .repo/local_manifests/roomservice.xml
|
2022-08-22 17:51:08 +02:00
|
|
|
- bash $DRONE_WORKSPACE_BASE/sync.sh
|
2022-08-18 16:55:27 +02:00
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
path: /build
|
2021-08-31 10:01:46 +02:00
|
|
|
- name: build
|
2022-08-18 16:55:27 +02:00
|
|
|
pull: always
|
|
|
|
image: docker.nyyu.dev/lineage/android:latest
|
2021-08-31 10:01:46 +02:00
|
|
|
commands:
|
2022-08-18 16:55:27 +02:00
|
|
|
- cd /build
|
|
|
|
- bash -c ". build/envsetup.sh && lunch lineage_$device-userdebug && mka bacon -j6"
|
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
path: /build
|
2021-08-31 10:01:46 +02:00
|
|
|
- name: copy
|
2022-08-18 16:55:27 +02:00
|
|
|
pull: always
|
|
|
|
image: docker.nyyu.dev/lineage/android:latest
|
2021-08-31 10:01:46 +02:00
|
|
|
commands:
|
2022-08-18 16:55:27 +02:00
|
|
|
- rm -f /http/lineage-$version-*-UNOFFICIAL-$device.zip*
|
|
|
|
- mv -f /build/out/target/product/$device/lineage-$version-*-UNOFFICIAL-$device.zip* /http/
|
2022-08-22 17:51:08 +02:00
|
|
|
- cat /build/changelog_${device}_${version}.md >> /http/changelog_${device}_${version}.md
|
2022-08-18 16:55:27 +02:00
|
|
|
- ls -lh /http/lineage-$version-*-UNOFFICIAL-$device.zip*
|
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
path: /build
|
|
|
|
- name: http
|
|
|
|
path: /http
|
2021-08-31 10:01:46 +02:00
|
|
|
- name: clean
|
2022-08-18 16:55:27 +02:00
|
|
|
pull: always
|
|
|
|
image: docker.nyyu.dev/lineage/android:latest
|
2021-08-31 10:01:46 +02:00
|
|
|
commands:
|
2022-08-22 17:51:08 +02:00
|
|
|
- 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
|
2022-08-18 16:55:27 +02:00
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
path: /build
|
2021-08-31 10:01:46 +02:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- custom
|
2021-09-03 21:51:40 +02:00
|
|
|
- cron
|
2021-08-31 10:01:46 +02:00
|
|
|
|
2022-08-18 16:55:27 +02:00
|
|
|
volumes:
|
|
|
|
- name: http
|
|
|
|
host:
|
|
|
|
path: /srv/http/drone
|
|
|
|
- name: build
|
|
|
|
host:
|
|
|
|
path: /media/fast/lineage/lineage-19.1
|
|
|
|
- name: publish
|
|
|
|
host:
|
|
|
|
path: /mnt/android/lineage
|
2021-08-31 10:01:46 +02:00
|
|
|
|
2022-08-18 16:55:27 +02:00
|
|
|
image_pull_secrets:
|
|
|
|
- dockerconfig
|
|
|
|
---
|
|
|
|
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
|
|
|
|
version: 19.1
|
2021-08-28 11:28:00 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: publish
|
2022-08-18 16:55:27 +02:00
|
|
|
pull: always
|
|
|
|
image: docker.nyyu.dev/lineage/android:latest
|
2021-08-28 11:28:00 +02:00
|
|
|
commands:
|
2022-08-22 17:51:08 +02:00
|
|
|
- mv /http/lineage-$version-*-UNOFFICIAL-$device.zip* /publish/$version/$device/
|
|
|
|
- cat /http/changelog_${device}_${version}.md >> /publish/$version/$device/changelog.md
|
2022-08-18 16:55:27 +02:00
|
|
|
- ls -lh /publish/$version/$device/
|
|
|
|
volumes:
|
|
|
|
- name: http
|
|
|
|
path: /http
|
|
|
|
- name: publish
|
|
|
|
path: /publish
|
2021-08-28 11:28:00 +02:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- promote
|
2022-08-18 16:55:27 +02:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: http
|
|
|
|
host:
|
|
|
|
path: /srv/http/drone
|
|
|
|
- name: publish
|
|
|
|
host:
|
|
|
|
path: /mnt/android/lineage
|
|
|
|
|
|
|
|
image_pull_secrets:
|
|
|
|
- dockerconfig
|