fix: Disable Docker push on PR builds

Fork PRs don't have write access to GHCR. Use conditional push
that only pushes on non-PR events (push to main, tags).
This commit is contained in:
2026-02-12 03:51:18 +00:00
parent 15b2876d7b
commit 32f57b1a9e

View File

@@ -48,7 +48,7 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha