Update '.drone.yml'
This commit is contained in:
parent
330d25549a
commit
8d71e19378
1 changed files with 53 additions and 2 deletions
55
.drone.yml
55
.drone.yml
|
@ -1,5 +1,5 @@
|
|||
kind: pipeline
|
||||
name: build and publish Qt Android-App
|
||||
name: build-qt-android-app
|
||||
steps:
|
||||
- name: build apk
|
||||
image: itsblue.dev/plugins/qt-android:5.15.5-1
|
||||
|
@ -7,6 +7,54 @@ steps:
|
|||
qmake_arguments: "CONFIG+=release"
|
||||
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
|
||||
image: alpine/curl
|
||||
commands:
|
||||
|
@ -16,4 +64,7 @@ steps:
|
|||
GITEA_USER:
|
||||
from_secret: gitea-user
|
||||
GITEA_TOKEN:
|
||||
from_secret: gitea-token
|
||||
from_secret: gitea-token
|
||||
depends_on:
|
||||
- build-qt-android-app
|
||||
- build-qt-macos-app
|
Loading…
Reference in a new issue