File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -41,25 +41,14 @@ jobs:
41
41
with :
42
42
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
43
43
44
- - name : Build and push container
45
- id : build-and-push
46
- if : ${{ github.ref_name != 'main' }}
47
- uses : docker/build-push-action@e551b19e49efd4e98792db7592c17c09b89db8d8 # v3.0.0
48
- with :
49
- context : .
50
- push : ${{ github.event_name != 'pull_request' }}
51
- tags : ${{ steps.meta.outputs.tags }}
52
- labels : ${{ steps.meta.outputs.labels }}
53
- platforms : linux/amd64,linux/arm64
54
-
55
44
- name : Build and push container
56
45
id : build-and-push
57
46
if : ${{ github.ref_name == 'main' }}
58
47
uses : docker/build-push-action@e551b19e49efd4e98792db7592c17c09b89db8d8 # v3.0.0
59
48
with :
60
49
context : .
61
50
push : ${{ github.event_name != 'pull_request' }}
62
- tags : latest
51
+ tags : ${{ (github.ref_name == 'main' && ' latest') || steps.meta.outputs.tags }}
63
52
labels : ${{ steps.meta.outputs.labels }}
64
53
platforms : linux/amd64,linux/arm64
65
54
You can’t perform that action at this time.
0 commit comments