-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
64 lines (59 loc) · 1.35 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
kind: pipeline
name: default
steps:
- name: check
image: runmymind/docker-android-sdk
volumes:
- name: gradle
path: /root/.gradle
commands:
- ./gradlew clean check
- name: build
image: runmymind/docker-android-sdk
volumes:
- name: gradle
path: /root/.gradle
commands:
- ./gradlew :proguard-android:clean :proguard-android:build
- ./gradlew :app:clean :app:build
- name: snapshot
image: runmymind/docker-android-sdk
volumes:
- name: gradle
path: /root/.gradle
environment:
PUBLISH_TO_JFROG: true
BINTRAY_USER:
from_secret: BINTRAY_USER
BINTRAY_API_KEY:
from_secret: BINTRAY_API_KEY
VERSION_CODE: ${DRONE_BUILD_NUMBER}
VERSION_NAME: 1.0.0-SNAPSHOT
commands:
- ./gradlew :proguard-android:clean :proguard-android:install :proguard-android:artifactoryPublish
when:
branch:
- master
event:
- push
- name: release
image: runmymind/docker-android-sdk
volumes:
- name: gradle
path: /root/.gradle
environment:
PUBLISH_TO_JCENTER: true
BINTRAY_USER:
from_secret: BINTRAY_USER
BINTRAY_API_KEY:
from_secret: BINTRAY_API_KEY
VERSION_CODE: ${DRONE_BUILD_NUMBER}
VERSION_NAME: 1.0.0
commands:
- ./gradlew :proguard-android:clean :proguard-android:install :proguard-android:bintrayUpload
when:
event:
- tag
volumes:
- name: gradle
temp: {}