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