app/.drone.yml

24 lines
672 B
YAML
Raw Normal View History

2022-07-29 08:48:09 +02:00
kind: pipeline
name: build and publish site
steps:
2022-07-29 14:19:01 +02:00
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
2022-07-29 08:48:09 +02:00
- name: build apk
2022-07-29 14:09:49 +02:00
image: itsblue.dev/plugins/qt-android:5.15.5-1
2022-07-29 08:48:09 +02:00
settings:
qmake_attributes: "CONFIG+=release"
2022-07-29 09:06:39 +02:00
androiddeployqt_attributes: "--aab"
2022-07-29 08:48:09 +02:00
- name: publish package
2022-07-29 14:29:01 +02:00
image: alpine/curl
2022-07-29 08:48:09 +02:00
commands:
2022-07-30 13:52:34 +02:00
- env
2022-07-29 14:40:16 +02:00
- "curl --user $GITEA_USER:$GITEA_TOKEN --upload-file outputs/apk/debug/android-build-debug.apk https://itsblue.dev/api/packages/bluerock/generic/app/${DRONE_COMMIT_SHA}/bluerock.apk"
2022-07-29 14:26:45 +02:00
environment:
GITEA_USER:
2022-07-29 14:35:31 +02:00
from_secret: gitea-user
2022-07-29 14:26:45 +02:00
GITEA_TOKEN:
2022-07-29 14:35:31 +02:00
from_secret: gitea-token