Skip to content

Commit 2e40ab8

Browse files
committed
ci: improve docker trigger
1 parent 061a558 commit 2e40ab8

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/push-image.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
name: Docker Image
22

33
on:
4+
workflow_run:
5+
workflows: [Tests]
6+
types: [completed]
7+
branches: [main]
48
push:
5-
branches:
6-
- main
79
tags:
810
- "v*"
911
workflow_dispatch:
1012

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
1117
permissions: {}
1218

1319
env:
@@ -17,6 +23,7 @@ env:
1723
jobs:
1824
push-image:
1925
name: Build and push image
26+
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
2027
runs-on: ubuntu-latest
2128
permissions:
2229
contents: read

0 commit comments

Comments
 (0)