Skip to content

Commit 623d12a

Browse files
CopilotPhantomDave
andcommitted
Disable SHA tags with branch prefix for PR builds
Co-authored-by: PhantomDave <34485699+PhantomDave@users.noreply.github.com>
1 parent 7bd1f04 commit 623d12a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-backend-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
with:
5050
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
5151
tags: |
52-
type=sha,prefix={{branch}}-
52+
type=sha,prefix={{branch}}-,enable=${{ github.event_name != 'pull_request' }}
5353
type=ref,event=branch
5454
type=ref,event=pr
5555
type=raw,value=latest,enable={{is_default_branch}}

.github/workflows/build-frontend-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
with:
9797
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
9898
tags: |
99-
type=sha,prefix={{branch}}-
99+
type=sha,prefix={{branch}}-,enable=${{ github.event_name != 'pull_request' }}
100100
type=ref,event=branch
101101
type=ref,event=pr
102102
type=raw,value=latest,enable={{is_default_branch}}

0 commit comments

Comments
 (0)