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: 18.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
|
2022-03-19 14:46:17 +01:00
|
|
|
- repo init -u https://github.com/LineageOS/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
|
2021-08-31 10:01:46 +02:00
|
|
|
- repo sync -q -c -j 6 --fail-fast --force-sync --no-tags
|
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/
|
|
|
|
- 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-18 16:55:27 +02:00
|
|
|
- cd /build
|
2021-08-31 10:01:46 +02:00
|
|
|
- rm -f out/target/product/$device/lineage-$version-*-UNOFFICIAL-$device.zip_* out/target/product/$device/lineage_$device-ota-eng.*.zip
|
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: /drone/lineage-18.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: 18.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-18 16:55:27 +02:00
|
|
|
- cd /http
|
|
|
|
- mv lineage-$version-*-UNOFFICIAL-$device.zip* /publish/$version/$device/
|
|
|
|
- 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
|