Skip to content

Commit 68811b5

Browse files
committed
ci: fix docker image build
1 parent ac8cd2b commit 68811b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish-docker.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ jobs:
4242
with:
4343
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4444
tags: |
45-
type=raw,value=latest,enable={{is_default_branch}}
45+
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
4646
type=semver,pattern={{version}}
4747
type=sha,format=long
4848
type=ref,event=branch
4949
type=ref,event=tag
50-
type=raw,value={{tag}},enable={{is_release}}
50+
type=raw,value=${{ github.event.release.tag_name }},enable=${{ github.event_name == 'release' }}
5151
5252
- name: Build and push Docker image
5353
uses: docker/build-push-action@v5

0 commit comments

Comments
 (0)