Skip to content

Commit

Permalink
Update docker-build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet authored Apr 30, 2024
1 parent 06e4375 commit 426c0ef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ jobs:

- name: Build and push ${{ inputs.name }} image
uses: docker/build-push-action@v5
id: push
with:
context: ${{ inputs.context }}
provenance: ${{ inputs.provenance }}
Expand All @@ -98,3 +99,10 @@ jobs:
build-args: ${{ inputs.build-args }}
file: ${{ env.FILE }}
secrets: ${{ inputs.secrets }}

- name: Attest image
uses: github-early-access/generate-build-provenance@main
with:
subject-name: ${{ inputs.registry }}/${{ inputs.namespace }}/${{ inputs.name }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

0 comments on commit 426c0ef

Please sign in to comment.