From 05cc91603d0043a18395005517283bc3b15ee82e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jann=20M=C3=BCller?= Date: Wed, 8 Jan 2025 16:00:10 +0100 Subject: [PATCH] Extract image hash from podman load --- .github/workflows/ci-oci.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-oci.yaml b/.github/workflows/ci-oci.yaml index 402e62a..2c61dfd 100644 --- a/.github/workflows/ci-oci.yaml +++ b/.github/workflows/ci-oci.yaml @@ -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