2019-10-13 02:46:52 +02:00
|
|
|
---
|
2019-10-10 03:29:35 +02:00
|
|
|
kind: pipeline
|
2019-10-14 11:06:46 +02:00
|
|
|
name: gitnex-ci-test
|
2019-10-10 03:29:35 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: test
|
|
|
|
image: nextcloudci/android:android-49
|
|
|
|
commands:
|
|
|
|
- ./gradlew test
|
|
|
|
|
2019-10-13 02:46:52 +02:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: gitnex-ci-build
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
2019-10-10 03:29:35 +02:00
|
|
|
- name: build
|
|
|
|
image: nextcloudci/android:android-49
|
|
|
|
commands:
|
|
|
|
- ./gradlew build
|
|
|
|
|
2020-04-15 18:09:29 +02:00
|
|
|
- name: sign
|
|
|
|
image: nextcloudci/android:android-49
|
|
|
|
environment:
|
|
|
|
TOKEN:
|
|
|
|
from_secret: BOT_TOKEN
|
|
|
|
KS_PASS:
|
|
|
|
from_secret: KS_PASS
|
|
|
|
KEY_PASS:
|
|
|
|
from_secret: KEY_PASS
|
|
|
|
OUTPUT: signed.apk
|
|
|
|
GITEA: https://gitea.com
|
|
|
|
KS_FILE: ci_keystore.jks
|
|
|
|
KS_REPO:
|
|
|
|
from_secret: KS_REPO
|
|
|
|
commands:
|
|
|
|
- ./scripts/sign-build.sh
|
|
|
|
|
|
|
|
- name: publish
|
|
|
|
image: vividboarder/drone-webdav
|
|
|
|
environment:
|
|
|
|
WEBDAV_USERNAME: GitNexBot
|
|
|
|
WEBDAV_PASSWORD:
|
|
|
|
from_secret: NC_TOKEN
|
2020-05-19 19:56:38 +02:00
|
|
|
PLUGIN_FILE: 'signed.apk'
|
2020-05-19 01:09:56 +02:00
|
|
|
PLUGIN_TIMEOUT: 480
|
|
|
|
PLUGIN_ATTEMPTS: 3
|
2020-05-19 19:56:38 +02:00
|
|
|
PLUGIN_PROXY_URL: 'socks5://218.5.229.147:38801'
|
|
|
|
PLUGIN_DESTINATION: 'https://cloud.swatian.com/remote.php/dav/files/GitNexBot/GitNex-Builds/latest.apk'
|
|
|
|
PLUGIN_CUSTOM_ARGUMENTS: '--progress-bar'
|
2020-04-15 18:09:29 +02:00
|
|
|
|
2019-10-10 03:29:35 +02:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
2019-10-14 11:27:04 +02:00
|
|
|
branch:
|
|
|
|
- master
|