diff --git a/.github/workflows/docker_build.yml b/.github/workflows/docker_build.yml index 2470d2a2bb..55b2adf8d4 100644 --- a/.github/workflows/docker_build.yml +++ b/.github/workflows/docker_build.yml @@ -36,7 +36,7 @@ jobs: uses: actions/checkout@v2 - name: Build Docker Image (No Push) - if: github.event_name == 'pull_request' || github.event_name == 'push' + if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref != 'refs/heads/main') uses: docker/build-push-action@v5.1.0 with: context: .