We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5d9e9bc + 20a3e8e commit 17b936cCopy full SHA for 17b936c
1 file changed
.github/workflows/release.yml
@@ -25,10 +25,14 @@ jobs:
25
uses: docker/metadata-action@v5
26
with:
27
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).
32
tags: |
33
type=semver,pattern={{version}}
34
type=semver,pattern={{major}}.{{minor}}
- type=raw,value=edge,enable={{is_default_branch}}
35
+ type=raw,value=edge,enable=${{ github.ref == 'refs/heads/main' }}
36
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
37
38
- uses: docker/setup-qemu-action@v3
0 commit comments