Update '.drone.yml'

This commit is contained in:
Dorian Zedler 2022-08-10 22:19:44 +02:00
parent 330d25549a
commit 8d71e19378

View file

@ -1,5 +1,5 @@
kind: pipeline kind: pipeline
name: build and publish Qt Android-App name: build-qt-android-app
steps: steps:
- name: build apk - name: build apk
image: itsblue.dev/plugins/qt-android:5.15.5-1 image: itsblue.dev/plugins/qt-android:5.15.5-1
@ -7,6 +7,54 @@ steps:
qmake_arguments: "CONFIG+=release" qmake_arguments: "CONFIG+=release"
androiddeployqt_arguments: "--android-platform android-31" androiddeployqt_arguments: "--android-platform android-31"
---
kind: pipeline
type: docker
name: start-github-action
steps:
- name: create workflow_dispatch event
image: itsblue.dev/plugins/github-workflow-controller
settings:
github_token:
from_secret: github-token
github_repo: "dorianim/drone-runner"
workflow_id: "drone.yml"
workflow_actions: start
---
kind: pipeline
type: exec
name: build-qt-macos-app
platform:
os: darwin
arch: amd64
steps:
- name: test
commands:
- sw_vers
depends_on:
- start-github-action
---
kind: pipeline
type: docker
name: stop-github-action
steps:
- name: cancel and delete workflow
image: itsblue.dev/plugins/github-workflow-controller
settings:
github_token:
from_secret: github-token
github_repo: "dorianim/drone-runner"
workflow_id: "drone.yml"
workflow_actions: cancel,delete
depends_on:
- build-qt-macos-app
---
kind: pipeline
type: docker
name: release-package
- name: publish package - name: publish package
image: alpine/curl image: alpine/curl
commands: commands:
@ -17,3 +65,6 @@ steps:
from_secret: gitea-user from_secret: gitea-user
GITEA_TOKEN: GITEA_TOKEN:
from_secret: gitea-token from_secret: gitea-token
depends_on:
- build-qt-android-app
- build-qt-macos-app