From 9ad96dbaea950ef687ff6cf9a78c28b9ac7de0f6 Mon Sep 17 00:00:00 2001 From: Vasilis Koulis Date: Fri, 3 Jan 2025 09:45:52 +0200 Subject: [PATCH] Run docker test login step only on PR --- .github/workflows/docker-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docker-test.yml b/.github/workflows/docker-test.yml index bcecd33..ee14394 100644 --- a/.github/workflows/docker-test.yml +++ b/.github/workflows/docker-test.yml @@ -39,6 +39,7 @@ jobs: # https://github.com/docker/login-action - name: Log into registry ${{ env.REGISTRY }} uses: docker/login-action@v3.0.0 + if: ${{ github.event_name == 'push' }} with: registry: ${{ env.REGISTRY }} username: ${{ secrets.HUB_USERNAME }}