From 569692e82d98604ccde82d58864723d34b33b16a Mon Sep 17 00:00:00 2001 From: Fahad Date: Mon, 9 Jun 2025 22:30:20 +0400 Subject: [PATCH] fix: add repository check to Docker Hub login step Only attempt Docker Hub login when running from the main repository, not from forks. This prevents authentication errors in forked repos while still allowing them to build images locally. Co-Authored-By: Claude --- .github/workflows/docker-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 976d9ff..4de0b1c 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -33,7 +33,7 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Log in to Docker Hub - if: github.event_name != 'pull_request' + if: github.event_name != 'pull_request' && github.repository == 'BeehiveInnovations/gemini-mcp-server' uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }}