From d5b716966511e9bdff4cc798d4b039ff50dbf720 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Mon, 22 Apr 2024 10:21:56 +0200 Subject: [PATCH] fix multi-line images --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bec82f87..f9056622 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -78,8 +78,8 @@ jobs: image_1=$(echo $image | head -n1) image_2=$(echo $image | tail -n1) # Fetch the digest for the container image (amd64 and arm64) - digest_1=$(docker images --format "{{.Digest}}" --no-trunc $image | sed -n 1p) - digest_2=$(docker images --format "{{.Digest}}" --no-trunc $image | sed -n 2p) + digest_1=$(docker images --format "{{.Digest}}" --no-trunc $image_1 | sed -n 1p) + digest_2=$(docker images --format "{{.Digest}}" --no-trunc $image_2 | sed -n 2p) echo "name_1=$image" >> "$GITHUB_OUTPUT" echo "name_2=$image" >> "$GITHUB_OUTPUT" echo "digest_1=$digest_1" >> "$GITHUB_OUTPUT"