Fix Docker attestation

This commit is contained in:
Luke Tainton 2024-07-13 11:05:56 +01:00
parent 014085f693
commit eb4f19ee3f
No known key found for this signature in database

View File

@ -32,7 +32,8 @@ jobs:
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with: with:
images: | images: |
ghcr.io/${{ github.repository }} ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ github.event.release.name }}
- name: Build and push Docker image - name: Build and push Docker image
id: push id: push
@ -46,6 +47,6 @@ jobs:
- name: Generate artifact attestation - name: Generate artifact attestation
uses: actions/attest-build-provenance@v1 uses: actions/attest-build-provenance@v1
with: with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} subject-name: ghcr.io/${{ github.repository }}:${{ github.event.release.name }}
subject-digest: ${{ steps.push.outputs.digest }} subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true push-to-registry: true