Skip to content

Commit 456cd63

Browse files
committed
feat: add latest tag for version releases and strip v prefix from tags
1 parent d929e1d commit 456cd63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-gateway.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ jobs:
4949
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
5050
tags: |
5151
type=ref,event=branch
52-
type=ref,event=tag
52+
type=ref,event=tag,pattern={{version}}
5353
type=sha,prefix={{branch}}-
5454
type=raw,value=latest,enable={{is_default_branch}}
55+
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
5556
5657
- name: Build and push Docker image
5758
uses: docker/build-push-action@v5

0 commit comments

Comments
 (0)