Skip to content

Commit 6b059c7

Browse files
MayorFajSamMorrowDrums
authored andcommitted
fix: update Docker publish workflow to correctly handle version tagging
1 parent 778b840 commit 6b059c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
type=match
8080
type=pep440
8181
# Custom rule to prevent pre-releases from getting latest tag
82-
type=raw,value=latest,enable=${{ !contains(github.ref, '-') && github.ref_type == 'tag' }}
82+
type=raw,value=latest,enable=${{ github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-') }}
8383
8484
- name: Go Build Cache for Docker
8585
uses: actions/cache@v4

0 commit comments

Comments
 (0)