Skip to content

Commit 5f85cd1

Browse files
committed
ci: apply no-cache-filter for master tags
Signed-off-by: CrazyMax <[email protected]>
1 parent f9afefb commit 5f85cd1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/buildkit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ jobs:
216216
run: |
217217
./hack/images "${{ needs.prepare.outputs.tag }}" "$IMAGE_NAME" "${{ needs.prepare.outputs.push }}"
218218
env:
219-
RELEASE: ${{ startsWith(github.ref, 'refs/tags/v') }}
219+
RELEASE: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }}
220220
TARGET: ${{ matrix.target-stage }}
221221
CACHE_FROM: type=gha,scope=image${{ matrix.target-stage }}
222222
CACHE_TO: type=gha,scope=image${{ matrix.target-stage }}

.github/workflows/frontend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
run: |
122122
./frontend/dockerfile/cmd/dockerfile-frontend/hack/release "${{ needs.prepare.outputs.typ }}" "${{ matrix.tag }}" "$IMAGE_NAME" "${{ needs.prepare.outputs.push }}"
123123
env:
124-
RELEASE: ${{ startsWith(github.ref, 'refs/tags/v') }}
124+
RELEASE: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }}
125125
CACHE_FROM: type=gha,scope=${{ env.CACHE_SCOPE }}
126126
CACHE_TO: type=gha,scope=${{ env.CACHE_SCOPE }}
127127
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)