diff --git a/.github/workflows/Build-Test-And-Deploy.yml b/.github/workflows/Build-Test-And-Deploy.yml index 04f07a3e..5bd54e25 100644 --- a/.github/workflows/Build-Test-And-Deploy.yml +++ b/.github/workflows/Build-Test-And-Deploy.yml @@ -47,9 +47,17 @@ jobs: run: dotnet test --no-build --configuration Release - name: Set up Docker Buildx - if: github.event_name != 'pull_request_target' && github.event_name != 'pull_request' uses: docker/setup-buildx-action@v3 +# Build but no push with a PR + - name: Docker build (no push) + if: github.event_name == 'pull_request' || github.event_name == 'merge_group' + uses: docker/build-push-action@v6 + with: + push: false + tags: temp-pr-validation + file: ./EssentialCSharp.Web/Dockerfile + - name: Build Container Image if: github.event_name != 'pull_request_target' && github.event_name != 'pull_request' uses: docker/build-push-action@v6