-
Notifications
You must be signed in to change notification settings - Fork 2
/
.drone.yml
66 lines (60 loc) · 1.45 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
kind: pipeline
name: default
clone:
git:
image: plugins/git
tags: true
steps:
- name: gettags
image: docker:git
commands:
- git fetch --tags
- name: fixperms
image: alpine
commands:
- chown 1000:1000 -R .
when:
branch:
- master
event:
- push
- name: build
image: thedrhax/android-sdk
commands:
- ./gradlew -q androidGitVersion
- ./gradlew assembleRelease
- jarsigner -keystore /ks/ci.jks -storepass "$PASSWORD" app/build/outputs/apk/release/app-release-unsigned.apk gh.ci.ecmelberk.com
- yes | /home/user/android-sdk-linux/tools/bin/sdkmanager "build-tools;29.0.0-rc3"
- /home/user/android-sdk-linux/build-tools/29.0.0-rc3/zipalign -v 4 app/build/outputs/apk/release/app-release-unsigned.apk TaskerHTTPServer.apk
volumes:
- name: keystore
path: /ks
environment:
PASSWORD:
from_secret: keystore_pwd
GRADLE_USER_HOME: "/home/user/gradleuh"
when:
branch:
- master
event:
- push
- name: publish
image: alpine
commands:
- cp TaskerHTTPServer.apk /out
- md5sum TaskerHTTPServer.apk > /out/TaskerHTTPServer.md5
volumes:
- name: output
path: /out
when:
branch:
- master
event:
- push
volumes:
- name: keystore
host:
path: /home/admicos/.secrets/android
- name: output
host:
path: /home/admicos/sharer/data