2021-08-08 20:58:08 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: mingc/android-build-box
|
|
|
|
commands:
|
2021-08-09 08:29:20 +00:00
|
|
|
- curl -sSL -u "$USERNAME:$PASSWORD" -o $KEYFILE https://cloud.crystalyx.net/remote.php/dav/files/$USERNAME/Bordel/$KEYFILE
|
2021-08-09 08:47:56 +00:00
|
|
|
- sh gradlew build bundle
|
|
|
|
- jarsigner -verbose -keystore $KEYFILE -storepass $KEYPASS -keypass $KEYPASS app/build/outputs/bundle/release/app-release.aab $KEYALIAS
|
2021-08-12 09:38:52 +00:00
|
|
|
- /opt/android-sdk/build-tools/30.0.0/apksigner sign -v --ks $KEYFILE --ks-key-alias $KEYALIAS --ks-pass pass:$KEYPASS --key-pass pass:$KEYPASS app/build/outputs/apk/debug/app-debug.apk
|
2021-08-09 08:26:21 +00:00
|
|
|
environment:
|
|
|
|
USERNAME:
|
|
|
|
from_secret: nextcloud_user
|
|
|
|
PASSWORD:
|
|
|
|
from_secret: nextcloud_password
|
|
|
|
KEYFILE:
|
|
|
|
from_secret: android_keyfile
|
|
|
|
KEYALIAS:
|
|
|
|
from_secret: android_keyalias
|
|
|
|
KEYPASS:
|
|
|
|
from_secret: android_keypass
|
2021-08-08 20:58:08 +00:00
|
|
|
- name: release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
base_url: https://git.crystalyx.net
|
|
|
|
files:
|
2021-08-09 06:56:39 +00:00
|
|
|
- app/build/outputs/apk/debug/app-debug.apk
|
|
|
|
- app/build/outputs/bundle/release/app-release.aab
|
2021-08-08 20:58:08 +00:00
|
|
|
when:
|
|
|
|
event: tag
|