mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-08 14:31:49 +02:00
test: Add the repodigest to see if it's different
This commit is contained in:
parent
41afa0fb23
commit
e958170032
1 changed files with 3 additions and 2 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue