Skip to content

Commit 5ac1bb8

Browse files
CI: Test docker container build (#738)
1 parent 4128719 commit 5ac1bb8

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/Build-Test-And-Deploy.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,17 @@ jobs:
4747
run: dotnet test --no-build --configuration Release
4848

4949
- name: Set up Docker Buildx
50-
if: github.event_name != 'pull_request_target' && github.event_name != 'pull_request'
5150
uses: docker/setup-buildx-action@v3
5251

52+
# Build but no push with a PR
53+
- name: Docker build (no push)
54+
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
55+
uses: docker/build-push-action@v6
56+
with:
57+
push: false
58+
tags: temp-pr-validation
59+
file: ./EssentialCSharp.Web/Dockerfile
60+
5361
- name: Build Container Image
5462
if: github.event_name != 'pull_request_target' && github.event_name != 'pull_request'
5563
uses: docker/build-push-action@v6

0 commit comments

Comments
 (0)