We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 061a558 commit 2e40ab8Copy full SHA for 2e40ab8
1 file changed
.github/workflows/push-image.yaml
@@ -1,13 +1,19 @@
1
name: Docker Image
2
3
on:
4
+ workflow_run:
5
+ workflows: [Tests]
6
+ types: [completed]
7
+ branches: [main]
8
push:
- branches:
- - main
9
tags:
10
- "v*"
11
workflow_dispatch:
12
13
+concurrency:
14
+ group: ${{ github.workflow }}-${{ github.ref }}
15
+ cancel-in-progress: true
16
+
17
permissions: {}
18
19
env:
@@ -17,6 +23,7 @@ env:
23
jobs:
24
push-image:
25
name: Build and push image
26
+ if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
20
27
runs-on: ubuntu-latest
21
28
permissions:
22
29
contents: read
0 commit comments