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 <noreply@anthropic.com>
This commit is contained in:
Fahad
2025-06-09 22:30:20 +04:00
parent b799f85b6d
commit 569692e82d

View File

@@ -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 }}