Skip to content

Commit 17b936c

Browse files
Merge: fix release workflow tags (#4)
ci: fix release workflow producing no tags on push to main
2 parents 5d9e9bc + 20a3e8e commit 17b936c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@ jobs:
2525
uses: docker/metadata-action@v5
2626
with:
2727
images: ${{ steps.img.outputs.name }}
28+
flavor: latest=false
29+
# Use explicit ref checks rather than {{is_default_branch}} — the
30+
# repo's default branch isn't necessarily `main`, which would leave
31+
# a push to main with zero tags (and buildx refuses to push then).
2832
tags: |
2933
type=semver,pattern={{version}}
3034
type=semver,pattern={{major}}.{{minor}}
31-
type=raw,value=edge,enable={{is_default_branch}}
35+
type=raw,value=edge,enable=${{ github.ref == 'refs/heads/main' }}
3236
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
3337
3438
- uses: docker/setup-qemu-action@v3

0 commit comments

Comments
 (0)