Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit a660f3a

Browse files
authored
Update docker-publish.yaml
1 parent ced579c commit a660f3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/docker-publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
# Build and push Docker image with Buildx (don't push on PR)
6666
# https://github.com/docker/build-push-action
6767
- name: Build and push Docker image on Push
68-
if: ${{ github.event_name != 'pull_request' }}
68+
if: ${{ github.event_name == 'push' }}
6969
id: build-and-push
7070
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
7171
with:
@@ -78,7 +78,7 @@ jobs:
7878
labels: ${{ steps.meta.outputs.labels }}
7979

8080
- name: Build and push Docker image on PR
81-
if: ${{ github.event_name == 'pull_request' }}
81+
if: ${{ github.event_name == 'pull_request_target' }}
8282
id: build-and-push-pr
8383
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
8484
with:
@@ -91,7 +91,7 @@ jobs:
9191

9292
# Extract SBOMs for images that are not getting pushed to the registry
9393
- name: Extract and upload SBOM
94-
if: ${{ github.event_name == 'pull_request' }}
94+
if: ${{ github.event_name == 'pull_request_target' }}
9595
id: sbom
9696
uses: atomist-skills/index-image-action@main
9797
with:

0 commit comments

Comments
 (0)