Skip to content

Commit c560bfc

Browse files
add main branch
1 parent 60b2541 commit c560bfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish_image.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Create and publish a Docker image
33

44
on:
55
push:
6-
branches: ['release/*']
6+
branches: ['release/*', 'main']
77

88
env:
99
REGISTRY: ghcr.io
@@ -37,7 +37,7 @@ jobs:
3737
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3838
tags: |
3939
type=ref,event=branch,pattern=release/v(?<version>\d+\.\d+\.\d+),group=version
40-
type=ref,event=branch,pattern=release/v(?<version>latest),group=version
40+
type=raw,value=latest,enable={{is_default_branch}}
4141
4242
- name: Build and push Docker image
4343
id: push

0 commit comments

Comments
 (0)