From 012e96a75f318a783362a35f7daeff72f2c87c93 Mon Sep 17 00:00:00 2001 From: Jonathan Flatt Date: Sat, 24 May 2025 18:44:07 +0000 Subject: [PATCH] Fix Docker push permissions for pull requests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only push Docker images when not in a pull request context. PRs don't have permission to push to ghcr.io, so we should only build without pushing. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c3ad0f7..4715def 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -92,7 +92,7 @@ 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