Skip to content

Commit

Permalink
GH-245: Added artifact attestation to workflows/docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jirenius committed Jun 11, 2024
1 parent 821186d commit a38e919
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
release:
types: [published]

env:
REGISTRY: docker.io
IMAGE_NAME: ${{ github.repository }}

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
Expand Down Expand Up @@ -47,3 +51,10 @@ jobs:
provenance: mode=max
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

0 comments on commit a38e919

Please sign in to comment.