Skip to content

Commit

Permalink
Extract image hash from podman load
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mueller committed Jan 8, 2025
1 parent fa04dcc commit 05cc916
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci-oci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ jobs:
run: |
IMAGE_NAME=ghcr.io/${{github.repository_owner}}/${{ matrix.image }}:$IMAGE_TAG
./result/bin/copy-to oci-archive:oci.tar
podman import oci.tar $IMAGE_NAME
IMAGE_HASH=$(podman load --quiet -i oci.tar | sed 's/.*sha256://')
podman tag $IMAGE_HASH $IMAGE_NAME
podman push $IMAGE_NAME

0 comments on commit 05cc916

Please sign in to comment.