diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 8625272..b96a3be 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -76,12 +76,17 @@ jobs: cache-to: type=gha,mode=max platforms: linux/amd64 - - name: Attest Docker images + name: Attest DockerHub uses: actions/attest-build-provenance@v2 with: - subject-name: | - docker.io/${{ vars.DOCKERHUB_USERNAME }}/${{ vars.IMAGE_NAME }} - ghcr.io/${{ github.repository_owner }}/${{ vars.IMAGE_NAME }} + subject-name: docker.io/${{ vars.DOCKERHUB_USERNAME }}/${{ vars.IMAGE_NAME }} + subject-digest: ${{ steps.push.outputs.digest }} + push-to-registry: true + - + name: Attest ghcr + uses: actions/attest-build-provenance@v2 + with: + subject-name: ghcr.io/${{ github.repository_owner }}/${{ vars.IMAGE_NAME }} subject-digest: ${{ steps.push.outputs.digest }} push-to-registry: true -