Skip to content

Commit

Permalink
ci(package): upload Docker image with provenance
Browse files Browse the repository at this point in the history
Signed-off-by: Fernando Fernández <[email protected]>
  • Loading branch information
ferferga committed Sep 9, 2024
1 parent cf82a14 commit 40d26bf
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/__package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.JF_BOT_TOKEN }}

- name: Create multiplatform image ${{ inputs.push && 'and push 🛠️⬆️' || '🛠️' }}
- name: Create multiplatform image and push 🛠️⬆️
uses: docker/[email protected]
id: image
with:
Expand All @@ -306,3 +306,17 @@ jobs:
with:
name: |
buildx-*
- name: Create provenance attestation (ghcr.io) 🔏
uses: actions/[email protected]
with:
subject-name: ghcr.io/${{ env.REGISTRY_IMAGE }}
subject-digest: ${{ steps.image.outputs.digest }}
push-to-registry: true

- name: Create provenance attestation (docker.io) 🔏
uses: actions/[email protected]
with:
subject-name: docker.io/${{ env.REGISTRY_IMAGE }}
subject-digest: ${{ steps.image.outputs.digest }}
push-to-registry: true

0 comments on commit 40d26bf

Please sign in to comment.