Add the tag to the subject

This commit is contained in:
Alexis Métaireau 2025-01-20 15:16:13 +01:00
parent 2235cb1b36
commit 56b464fe58
No known key found for this signature in database
GPG key ID: C65C7A89A8FFC56E

View file

@ -51,10 +51,11 @@ jobs:
podman tag dangerzone.rocks/dangerzone:$TAG "$FINAL_IMAGE_NAME" podman tag dangerzone.rocks/dangerzone:$TAG "$FINAL_IMAGE_NAME"
podman push "$FINAL_IMAGE_NAME" --digestfile=digest podman push "$FINAL_IMAGE_NAME" --digestfile=digest
echo "digest=$(cat digest)" >> "$GITHUB_OUTPUT" echo "digest=$(cat digest)" >> "$GITHUB_OUTPUT"
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
- 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: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.build-image.outputs.tag }}
subject-digest: "${{ steps.build-image.outputs.digest }}" subject-digest: "${{ steps.build-image.outputs.digest }}"
push-to-registry: true push-to-registry: true