LedDisplay/.drone.yml

49 lines
1.3 KiB
YAML
Raw Normal View History

2022-08-03 13:25:55 +02:00
kind: pipeline
name: default
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
2022-08-03 13:51:57 +02:00
- name: extract keystore
image: alpine
commands:
2022-08-03 13:53:39 +02:00
- echo $ANDROID_RELEASE_KEYSTORE | base64 -d > android_release.keystore
2022-08-03 13:54:21 +02:00
- du -hs ./android_release.keystore
2022-08-03 13:51:57 +02:00
environment:
ANDROID_RELEASE_KEYSTORE:
from_secret: android-release-keystore
2022-08-03 13:52:23 +02:00
- name: build firmware
image: python:3.6
commands:
- cd firmware
- "pip install -U platformio"
- "platformio run --environment esp32"
- cp .pio/build/esp32/firmware.bin firmware-esp32.bin
2022-08-03 13:25:55 +02:00
- name: build app
2022-08-05 08:18:24 +02:00
image: itsblue.dev/plugins/qt-android:5.15.5-3
2022-08-03 13:25:55 +02:00
settings:
qmake_arguments: "CONFIG+=release"
androiddeployqt_arguments: "--android-platform android-31"
src_dir: app
2022-08-04 17:35:39 +02:00
android_keystore_path: "android_release.keystore"
android_keystore_alias: "bmca"
android_keystore_store_pass:
from_secret: android-release-keystore-password
2022-08-03 13:25:55 +02:00
- name: release
image: plugins/gitea-release
settings:
base_url: https://itsblue.dev
api_key:
from_secret: gitea-token
files:
- ./firmware/firmware-esp32.bin
- ./outputs/apk/release/android-build-release-signed.apk
- ./outputs/bundle/release/android-build-release.aab
when:
event: tag