Add notify and update drone yml
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
1730dc071d
commit
26060115bc
43
.drone.yml
43
.drone.yml
@ -1,15 +1,19 @@
|
||||
---
|
||||
kind: pipeline
|
||||
name: build
|
||||
|
||||
workspace:
|
||||
base: /src
|
||||
path: .
|
||||
|
||||
pipeline:
|
||||
build:
|
||||
steps:
|
||||
|
||||
- name: build
|
||||
image: openjdk:8-jdk
|
||||
environment:
|
||||
- ANDROID_COMPILE_SDK=25
|
||||
- ANDROID_BUILD_TOOLS=25.0.2
|
||||
- ANDROID_SDK_TOOLS=3859397
|
||||
ANDROID_COMPILE_SDK: 25
|
||||
ANDROID_BUILD_TOOLS: 25.0.2
|
||||
ANDROID_SDK_TOOLS: 3859397
|
||||
commands:
|
||||
- chmod +x ./gradlew
|
||||
- export ANDROID_HOME=/src/android-sdk-linux
|
||||
@ -32,12 +36,25 @@ pipeline:
|
||||
- ./gradlew test
|
||||
- ./gradlew build
|
||||
|
||||
upload_debug:
|
||||
- name: upload
|
||||
image: vividboarder/drone-webdav
|
||||
file: com.iamthefij.otbeta/build/outputs/apk/com.iamthefij.otbeta-debug.apk
|
||||
destination: https://cloud.iamthefij.com/remote.php/dav/files/iamthefij/Android/Apks/
|
||||
secrets:
|
||||
- source: WEBDAV_USER
|
||||
target: PLUGIN_USERNAME
|
||||
- source: WEBDAV_PASSWORD
|
||||
target: PLUGIN_PASSWORD
|
||||
settings:
|
||||
file: com.iamthefij.otbeta/build/outputs/apk/com.iamthefij.otbeta-debug.apk
|
||||
destination: https://cloud.iamthefij.com/remote.php/dav/files/iamthefij/Android/Apks/
|
||||
username:
|
||||
from_secret: WEBDAV_USER
|
||||
password:
|
||||
from_secret: WEBDAV_PASSWORD
|
||||
|
||||
- name: notify
|
||||
image: drillster/drone-email
|
||||
settings:
|
||||
host:
|
||||
from_secret: smtp_host
|
||||
username:
|
||||
from_secret: smtp_user
|
||||
password:
|
||||
from_secret: smtp_pass
|
||||
from: drone@iamthefij.com
|
||||
when:
|
||||
status: [changed, failure]
|
||||
|
Loading…
Reference in New Issue
Block a user