Enable manual workflow triggers
This commit is contained in:
parent
c717c3751c
commit
2aa075e842
2 changed files with 4 additions and 2 deletions
|
|
@ -12,6 +12,7 @@ on:
|
||||||
branches: [main, master]
|
branches: [main, master]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main, master]
|
branches: [main, master]
|
||||||
|
workflow_dispatch: # Enable manual trigger
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: qbit.realms.pub
|
REGISTRY: qbit.realms.pub
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ on:
|
||||||
workflows: ["Build and Push"]
|
workflows: ["Build and Push"]
|
||||||
types: [completed]
|
types: [completed]
|
||||||
branches: [main, master]
|
branches: [main, master]
|
||||||
|
workflow_dispatch: # Enable manual trigger
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: qbit.realms.pub
|
REGISTRY: qbit.realms.pub
|
||||||
|
|
@ -19,8 +20,8 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
# Only deploy if the build succeeded
|
# Only deploy if build succeeded OR manual trigger
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue