File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : build
2
2
3
3
on :
4
+ release :
5
+ types : [created]
4
6
push :
5
7
branches :
6
8
- main
7
- tags :
8
- - " v*" # Triggers on version tags like v1.0.0
9
9
pull_request :
10
10
branches :
11
11
- main
Original file line number Diff line number Diff line change 46
46
cache-to : type=gha,mode=max
47
47
48
48
- name : build and push docker image (push branch)
49
- if : ${{ github.event.workflow_run.event == 'push' && !startsWith(github.ref, 'refs/tags/') }}
49
+ if : ${{ github.event.workflow_run.event == 'push' }}
50
50
uses : docker/build-push-action@v3
51
51
with :
52
52
push : true
58
58
cache-to : type=gha,mode=max
59
59
60
60
- name : build and push docker image (push tag)
61
- if : ${{ github.event.workflow_run.event == 'push' && startsWith(github.ref, 'refs/tags/') }}
61
+ if : ${{ github.event.workflow_run.event == 'release' }}
62
62
uses : docker/build-push-action@v3
63
63
with :
64
64
push : true
You can’t perform that action at this time.
0 commit comments