An open source, non-profit web search engine
Build: don't push to GHCR in a PR
blueheron786cc7cbb4b2b72
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 6624c8a..cdf28dd 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -39,7 +39,8 @@ jobs:uses: docker/build-push-action@v5with:context: .- push: true+ # Don't push pull-request builds to GHCR+ push: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }}tags: ${{ steps.meta.outputs.tags }}labels: ${{ steps.meta.outputs.labels }}cache-from: type=gha