This commit is contained in:
parent
f03aea7376
commit
48211c129b
41
.drone.yml
41
.drone.yml
@ -37,20 +37,42 @@ volumes:
|
|||||||
path: /home/drone/Android/Sdk
|
path: /home/drone/Android/Sdk
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
event:
|
||||||
exclude:
|
exclude:
|
||||||
- master
|
- tag
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: clean
|
name: release
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: nextcloudci/android:android-49
|
image: nextcloudci/android:android-49
|
||||||
|
volumes:
|
||||||
|
- name: tmp
|
||||||
|
path: /drone/src/out
|
||||||
commands:
|
commands:
|
||||||
- ./gradlew build
|
- ./gradlew :wrapper:build
|
||||||
|
- mv /drone/src/wrapper/build/libs/*.jar /drone/src/out/
|
||||||
|
- mv /drone/src/app/build/outputs/apk/release/*.apk
|
||||||
|
|
||||||
|
- 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
|
- name: notify
|
||||||
image: appleboy/drone-telegram
|
image: appleboy/drone-telegram
|
||||||
@ -61,13 +83,16 @@ steps:
|
|||||||
from_secret: telegram_user
|
from_secret: telegram_user
|
||||||
format: markdown
|
format: markdown
|
||||||
message: |
|
message: |
|
||||||
Build [#{{build.number}}]({{build.link}}) from commit [{{truncate commit.sha 10}}]({{commit.link}}) on {{commit.branch}} **failed**.
|
Build [#{{build.number}}]({{build.link}}) from commit [{{truncate commit.sha 10}}]({{commit.link}}) with tag {{build.tag}} **failed**.
|
||||||
{{uppercasefirst commit.author}} please fix me!
|
{{uppercasefirst commit.author}} please fix me!
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- failure
|
- failure
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: tmp
|
||||||
|
temp: {}
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
event:
|
||||||
include:
|
- tag
|
||||||
- master
|
|
||||||
|
Loading…
Reference in New Issue
Block a user