Skip to content

Commit

Permalink
Use the --digestfile flag
Browse files Browse the repository at this point in the history
  • Loading branch information
almet committed Nov 28, 2024
1 parent e958170 commit 87a65ce
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/release-container-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,8 @@ jobs:
gunzip -c share/container.tar.gz | podman load
FINAL_IMAGE_NAME="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
podman tag dangerzone.rocks/dangerzone "$FINAL_IMAGE_NAME"
podman push "$FINAL_IMAGE_NAME"
# Get digest of the pushed image using the final name
DIGEST=$(podman inspect --format='{{.Digest}}' "$FINAL_IMAGE_NAME")
podman inspect --format='Repo Digest: {{index .RepoDigests 0}}' "$FINAL_IMAGE_NAME"
echo "Digest: ${DIGEST}"
echo "digest=${DIGEST}" >> "$GITHUB_OUTPUT"
podman push "$FINAL_IMAGE_NAME" --digestfile=digest
echo "digest=$(cat digest)" >> "$GITHUB_OUTPUT"
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
Expand Down

0 comments on commit 87a65ce

Please sign in to comment.