Skip to content

Commit

Permalink
Added build attestation to the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm authored May 16, 2024
1 parent 54d8acc commit 8076e20
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/_docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:

- uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v5
with:
context: ${{ inputs.context }}
Expand All @@ -58,3 +59,10 @@ jobs:
GIT_COMMIT_MESSAGE="${github.event.head_commit.message//\n/}"
cache-from: type=gha
cache-to: type=gha,mode=min
- name: Attest
uses: actions/attest-build-provenance@v1
id: attest
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

0 comments on commit 8076e20

Please sign in to comment.