We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26c0dff commit aa74e45Copy full SHA for aa74e45
.github/workflows/publish.yml
@@ -2,6 +2,7 @@ name: Create and publish a Docker image
2
3
on:
4
workflow_dispatch:
5
+ pull_request:
6
push:
7
branches:
8
- "master"
@@ -42,11 +43,12 @@ jobs:
42
43
uses: docker/build-push-action@v6
44
with:
45
context: .
- push: true
46
+ push: ${{ github.event_name != 'pull_request' }}
47
tags: ${{ steps.meta.outputs.tags }}
48
labels: ${{ steps.meta.outputs.labels }}
49
50
- name: Generate artifact attestation
51
+ if: github.event_name != 'pull_request'
52
uses: actions/attest-build-provenance@v2
53
54
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
0 commit comments