File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish Docker image
2
2
3
3
on :
4
- workflow_run :
5
- workflows : ["CI/CD"]
6
- types :
7
- - completed
8
- branches :
9
- - main
10
4
release :
11
5
types : [published]
12
6
16
10
17
11
jobs :
18
12
build-and-push :
19
- if : ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'release' }}
20
13
runs-on : ubuntu-latest
21
14
permissions :
22
15
contents : read
42
35
with :
43
36
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
44
37
tags : |
45
- type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
46
- type=semver,pattern={{version}}
47
- type=sha,format=long
48
- type=ref,event=branch
49
- type=ref,event=tag
50
- type=raw,value=${{ github.event.release.tag_name }},enable=${{ github.event_name == 'release' }}
38
+ type=raw,value=${{ github.event.release.tag_name }}
39
+ type=raw,value=latest,enable=${{ github.event.release.prerelease == false }}
51
40
52
41
- name : Build and push Docker image
53
42
uses : docker/build-push-action@v5
You can’t perform that action at this time.
0 commit comments