fix(ci): add BUILD_HOSTNAME
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
nyyu 2022-12-10 12:39:55 +01:00
parent d31c589001
commit 7d4ec17f3e

View File

@ -12,7 +12,7 @@ matrix:
pipeline:
sync:
pull: true
image: docker.nyyu.dev/lineage/android:latest
image: docker.nyyu.dev/lineage/android
commands:
- HOME=/home/drone
- git config --global user.email 'drone@nyyu.dev'
@ -31,7 +31,9 @@ pipeline:
- cron
build:
pull: true
image: docker.nyyu.dev/lineage/android:latest
image: docker.nyyu.dev/lineage/android
environment:
- BUILD_HOSTNAME=docker
commands:
- cd /build
- bash -c ". build/envsetup.sh && lunch lineage_$device-userdebug && mka bacon -j6"
@ -44,7 +46,7 @@ pipeline:
- cron
copy:
pull: true
image: docker.nyyu.dev/lineage/android:latest
image: alpine
commands:
- rm -f /http/lineage-$version-*-UNOFFICIAL-$device.zip*
- mv -f /build/out/target/product/$device/lineage-$version-*-UNOFFICIAL-$device.zip* /http/
@ -59,7 +61,7 @@ pipeline:
- cron
clean:
pull: true
image: docker.nyyu.dev/lineage/android:latest
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 -f /build/changelog-$device-$version.md
@ -71,7 +73,7 @@ pipeline:
- cron
publish:
pull: true
image: docker.nyyu.dev/lineage/android:latest
image: alpine
commands:
- mv /http/lineage-$version-*-UNOFFICIAL-$device.zip* /publish/$version/$device/
- cat /http/changelog-$device-$version.md >> /publish/$version/$device/changelog.md