forked from LineageOS/android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
75 lines (68 loc) · 1.74 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
kind: pipeline
name: Lineage 14.1
platform:
os: linux
arch: amd64
steps:
- name: build
build:
image: bitrvmpd/debian-build
args:
WORKSPACE: /usr/src/loup
context: .
dockerfile: Dockerfile
- name: Build Xiaomi Redmi 4X (santoni)
image: bitrvmpd/debian-build
commands:
- export PATH=$PATH:/usr/bin/repo
- mkdir -p /usr/src/los141
- export WORKSPACE=/usr/src/los141
- cd $WORKSPACE
- repo init -u git://github.com/bitrvmpd/android.git -b $ANDROID_VERSION --depth=1
- "repo sync -f -c -n --force-sync -j 5 && repo sync -f -c -l -j 5"
- loup/tools/build.sh santoni
environment:
ANDROID_VERSION: cm-14.1
volumes:
- name: cache
path: /usr/src
- name: Publish
image: bitrvmpd/debian-build
commands:
- export WORKSPACE=/usr/src/los141
- export DEVICE=santoni
- $WORKSPACE/loup/tools/get_latest_build.sh $DEVICE
- export LATEST=$(cat latest-file)
- $WORKSPACE/loup/tools/deltaenv.sh $DEVICE
- export OLD_BUILD_NAME=$(basename $LATEST .zip)
- "export LATEST=$(ls $WORKSPACE/deltas/current/$DEVICE/lineage-*-*-*-$DEVICE.zip)"
- export NEW_BUILD_NAME=$(basename $LATEST .zip)
- $WORKSPACE/loup/tools/upload_files.sh $DEVICE $OLD_BUILD_NAME $NEW_BUILD_NAME
- $WORKSPACE/loup/tools/update_def.sh $DEVICE $LATEST
- "rm -rf $WORKSPACE/out/target/product/$DEVICE/*.zip"
- "rm -rf $WORKSPACE/out/target/product/$DEVICE/*.md5sum"
environment:
ghpass:
from_secret: ghpass
ghuser:
from_secret: ghuser
sfpass:
from_secret: sfpass
sfproject:
from_secret: sfproject
sfusername:
from_secret: sfusername
volumes:
- name: cache
path: /usr/src
volumes:
- name: cache
host:
path: /usr/src
trigger:
branch:
- cm-14.1
event:
- push
...