diff --git a/.github/workflows/docker-img.yml b/.github/workflows/docker-img.yml index 4ea6d0d..794f082 100644 --- a/.github/workflows/docker-img.yml +++ b/.github/workflows/docker-img.yml @@ -36,6 +36,7 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Log in to Container registry + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} @@ -62,6 +63,7 @@ jobs: # set latest tag for default branch type=raw,value=latest,enable={{is_default_branch}} - name: Build and push Docker image + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository uses: docker/build-push-action@v6 with: context: .