From fd47216104790b011ad758b5a793c6df2c860b07 Mon Sep 17 00:00:00 2001 From: Jason Kratz Date: Thu, 4 Apr 2024 15:36:38 -0500 Subject: [PATCH] fix: correctly handle multi-line tag digests output kaniko outputs each tag on a new line, so users that push multiple tags at once would get an error as the output wasn't prepared to handle multi-line text --- entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 4ce09ea..8a29b69 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -102,7 +102,9 @@ eval "${kaniko_cmd}" echo "image=$IMAGE" >> "$GITHUB_OUTPUT" echo "digest=$(cat /kaniko/digest)" >> "$GITHUB_OUTPUT" -echo "image-tag-digest=$(cat /kaniko/image-tag-digest)" >> "$GITHUB_OUTPUT" +echo "image-tag-digest<>"$GITHUB_OUTPUT" +echo "$(cat /kaniko/image-tag-digest)" >>"$GITHUB_OUTPUT" +echo 'EOF' >>"$GITHUB_OUTPUT" if [ -n "$INPUT_SKIP_UNCHANGED_DIGEST" ]; then