From 2b7c1bed18fc04ebfa48bc441f870007f1ae24bc Mon Sep 17 00:00:00 2001 From: Alexandru Mahmoud Date: Fri, 20 Dec 2024 12:19:42 -0500 Subject: [PATCH] Fix the digests listing --- .github/workflows/build_containers.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_containers.yaml b/.github/workflows/build_containers.yaml index 6a8328f..5c67897 100644 --- a/.github/workflows/build_containers.yaml +++ b/.github/workflows/build_containers.yaml @@ -266,8 +266,11 @@ jobs: CONTAINERNAME=$(echo '${{ steps.meta1.outputs.tags }}' | awk -F':' '{print $1}') # Create manifest list - DIGESTS=$(cd /tmp/digests && find . -type f -exec echo "$CONTAINERNAME@sha256:{}" \; | sed 's/\.\//:/') - + DIGESTS="" + for eachdir in $(ls /tmp/digests); do + DIGESTS_ARCH=$(cd /tmp/digests/$eachdir && find . -type f -exec echo "$CONTAINERNAME@sha256{}" \; | sed 's/\.\//:/') + DIGESTS="$DIGESTS $DIGESTS_ARCH" + done docker buildx imagetools create $TAG_ARGS $DIGESTS - name: Inspect image