This commit is contained in:
parent
edd5667917
commit
61fbe7242c
32
.drone.yml
32
.drone.yml
@ -7,7 +7,7 @@ environment:
|
|||||||
version: 18.1
|
version: 18.1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: sync
|
- name: sync
|
||||||
pull: always
|
pull: always
|
||||||
image: docker.nyyu.dev/lineage/android:latest
|
image: docker.nyyu.dev/lineage/android:latest
|
||||||
commands:
|
commands:
|
||||||
@ -20,7 +20,7 @@ steps:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: build
|
- name: build
|
||||||
path: /build
|
path: /build
|
||||||
- name: build
|
- name: build
|
||||||
pull: always
|
pull: always
|
||||||
image: docker.nyyu.dev/lineage/android:latest
|
image: docker.nyyu.dev/lineage/android:latest
|
||||||
commands:
|
commands:
|
||||||
@ -29,25 +29,25 @@ steps:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: build
|
- name: build
|
||||||
path: /build
|
path: /build
|
||||||
- name: copy
|
- name: copy
|
||||||
pull: always
|
pull: always
|
||||||
image: docker.nyyu.dev/lineage/android:latest
|
image: docker.nyyu.dev/lineage/android:latest
|
||||||
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/
|
||||||
- cat /build/changelog_${device}_${version}.md >> /http/changelog_${device}_${version}.md
|
- cat /build/changelog-$device-$version.md >> /http/changelog-$device-$version.md
|
||||||
- ls -lh /http/lineage-$version-*-UNOFFICIAL-$device.zip*
|
- ls -lh /http/lineage-$version-*-UNOFFICIAL-$device.zip*
|
||||||
volumes:
|
volumes:
|
||||||
- name: build
|
- name: build
|
||||||
path: /build
|
path: /build
|
||||||
- name: http
|
- name: http
|
||||||
path: /http
|
path: /http
|
||||||
- name: clean
|
- name: clean
|
||||||
pull: always
|
pull: always
|
||||||
image: docker.nyyu.dev/lineage/android:latest
|
image: docker.nyyu.dev/lineage/android:latest
|
||||||
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
|
||||||
volumes:
|
volumes:
|
||||||
- name: build
|
- name: build
|
||||||
path: /build
|
path: /build
|
||||||
@ -57,18 +57,15 @@ trigger:
|
|||||||
- cron
|
- cron
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: http
|
- name: http
|
||||||
host:
|
host:
|
||||||
path: /srv/http/drone
|
path: /srv/http/drone
|
||||||
- name: build
|
- name: build
|
||||||
host:
|
host:
|
||||||
path: /drone/lineage-18.1
|
path: /drone/lineage-18.1
|
||||||
- name: publish
|
|
||||||
host:
|
|
||||||
path: /mnt/android/lineage
|
|
||||||
|
|
||||||
image_pull_secrets:
|
image_pull_secrets:
|
||||||
- dockerconfig
|
- dockerconfig
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
@ -79,12 +76,13 @@ environment:
|
|||||||
version: 18.1
|
version: 18.1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: publish
|
- name: publish
|
||||||
pull: always
|
pull: always
|
||||||
image: docker.nyyu.dev/lineage/android:latest
|
image: docker.nyyu.dev/lineage/android:latest
|
||||||
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
|
||||||
|
- rm -f /http/changelog-$device-$version.md
|
||||||
- ls -lh /publish/$version/$device/
|
- ls -lh /publish/$version/$device/
|
||||||
volumes:
|
volumes:
|
||||||
- name: http
|
- name: http
|
||||||
@ -96,12 +94,12 @@ trigger:
|
|||||||
- promote
|
- promote
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: http
|
- name: http
|
||||||
host:
|
host:
|
||||||
path: /srv/http/drone
|
path: /srv/http/drone
|
||||||
- name: publish
|
- name: publish
|
||||||
host:
|
host:
|
||||||
path: /mnt/android/lineage
|
path: /mnt/android/lineage
|
||||||
|
|
||||||
image_pull_secrets:
|
image_pull_secrets:
|
||||||
- dockerconfig
|
- dockerconfig
|
||||||
|
2
sync.sh
2
sync.sh
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
TOPDIR=$(pwd)
|
TOPDIR=$(pwd)
|
||||||
changelog=${TOPDIR}/changelog_${device}_${version}.md
|
changelog=${TOPDIR}/changelog-${device}-${version}.md
|
||||||
|
|
||||||
declare -A before
|
declare -A before
|
||||||
tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse HEAD)"'))
|
tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse HEAD)"'))
|
||||||
|
Loading…
Reference in New Issue
Block a user