From 26060115bcaa2a8bade5ea632dbe18da75b93be0 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Thu, 19 Dec 2019 17:39:10 -0800 Subject: [PATCH] Add notify and update drone yml --- .drone.yml | 43 ++++++++++++++++++++++++++++++------------- 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2e44981..27f6c0c 100644 --- a/.drone.yml +++ b/.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]