app/.drone.yml

25 lines
686 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
image: ubuntu:20.04
commands:
2022-07-29 14:26:45 +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
environment:
GITEA_USER:
from_secret: docker_username
GITEA_TOKEN:
from_secret: docker_password