Skip to content

Commit 19fbde2

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 96e76aa + 456cd63 commit 19fbde2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build-gateway.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
with:
4141
registry: ${{ env.REGISTRY }}
4242
username: ${{ github.actor }}
43-
password: ${{ secrets.GITHUB_TOKEN }}
43+
password: ${{ secrets.GHCR_TOKEN }}
4444

4545
- name: Extract metadata
4646
id: meta
@@ -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)