kind: pipeline type: docker 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 - name: notify image: appleboy/drone-telegram settings: token: from_secret: telegram_token to: from_secret: telegram_user format: markdown message: | Build [#{{build.number}}]({{build.link}}) from commit [{{truncate commit.sha 10}}]({{commit.link}}) on {{commit.branch}} **failed**. {{uppercasefirst commit.author}} please fix me! when: status: - failure volumes: - name: gradle host: path: /home/drone/.gradle - name: android host: path: /home/drone/Android/Sdk trigger: event: exclude: - tag --- kind: pipeline type: docker name: release steps: - name: build image: nextcloudci/android:android-49 volumes: - name: tmp path: /drone/src/out commands: - ./gradlew build - mv /drone/src/wrapper/build/libs/*.jar /drone/src/out/ - mv /drone/src/app/build/outputs/apk/release/*.apk /drone/src/out/ - name: gitea release image: plugins/gitea-release volumes: - name: tmp path: /drone/src/out settings: api_key: from_secret: gitea_release base_url: https://git.norangeb.it title: wedroid files: - /drone/src/out/*.jar - /drone/src/out/*.apk checksum: - md5 - sha256 - name: notify image: appleboy/drone-telegram settings: token: from_secret: telegram_token to: from_secret: telegram_user format: markdown message: | Build [#{{build.number}}]({{build.link}}) from commit [{{truncate commit.sha 10}}]({{commit.link}}) with tag {{build.tag}} **failed**. {{uppercasefirst commit.author}} please fix me! when: status: - failure volumes: - name: tmp temp: {} trigger: event: - tag