Skip to content

Commit 778b840

Browse files
MayorFajSamMorrowDrums
authored andcommitted
fix: enhance Docker publish workflow with additional tagging options
1 parent 519ed9e commit 778b840

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: .github/workflows/docker-publish.yml

+14
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,20 @@ jobs:
6666
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
6767
with:
6868
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
69+
tags: |
70+
type=schedule
71+
type=ref,event=branch
72+
type=ref,event=tag
73+
type=ref,event=pr
74+
type=semver,pattern={{version}}
75+
type=semver,pattern={{major}}.{{minor}}
76+
type=semver,pattern={{major}}
77+
type=sha
78+
type=edge
79+
type=match
80+
type=pep440
81+
# Custom rule to prevent pre-releases from getting latest tag
82+
type=raw,value=latest,enable=${{ !contains(github.ref, '-') && github.ref_type == 'tag' }}
6983
7084
- name: Go Build Cache for Docker
7185
uses: actions/cache@v4

0 commit comments

Comments
 (0)