From 50542be113c658a6d25822f1859314b05ee61a5c Mon Sep 17 00:00:00 2001 From: norangebit Date: Thu, 28 Nov 2019 14:55:08 +0100 Subject: [PATCH 1/2] use local volumes Add local volumes for caching gradle and android. This should solve #16. --- .drone.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.drone.yml b/.drone.yml index 87a0cb8..5db05d7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,6 +5,11 @@ name: default steps: - name: build image: nextcloudci/android:android-49 + volumes: + - name: gradle + path: /root/.gradle + - name: android + path: /opt/android-sdk-linux commands: - ./gradlew build @@ -22,3 +27,13 @@ steps: when: status: - failure + +volumes: +- name: gradle + host: + path: + from_secret: volume_gradle +- name: android + host: + path: + from_secret: volume_android From c106c0ffcee8e61aca285a7a8bd75041fc83d485 Mon Sep 17 00:00:00 2001 From: norangebit Date: Thu, 28 Nov 2019 15:02:26 +0100 Subject: [PATCH 2/2] remove from_secret --- .drone.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5db05d7..5db0a51 100644 --- a/.drone.yml +++ b/.drone.yml @@ -31,9 +31,7 @@ steps: volumes: - name: gradle host: - path: - from_secret: volume_gradle + path: /home/drone/.gradle - name: android host: - path: - from_secret: volume_android + path: /home/drone/Android/Sdk