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:
1 parent
15b2876d7b
commit
32f57b1a9e
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user