workflows: update rule

This commit is contained in:
Chenyme committed 2025-10-10 17:08:12 +08:00
1 parent ba617455f0
commit da13b1f501
1 file changed
+3 -2
+3 -2
View File
@@ -20,6 +20,7 @@ jobs:
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Checkout repository
@@ -51,8 +52,8 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max