Skip to content

Commit

Permalink
test: Add the repodigest to see if it's different
Browse files Browse the repository at this point in the history
  • Loading branch information
almet committed Nov 27, 2024
1 parent 41afa0f commit e958170
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release-container-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,16 @@ jobs:
sudo apt-get install -y python3-poetry
python3 ./install/common/build-image.py
echo ${{ github.token }} | podman login ghcr.io -u USERNAME --password-stdin
# Load the image with the final name directly
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"
Expand Down

0 comments on commit e958170

Please sign in to comment.