Skip to content

Commit

Permalink
fix: correctly handle multi-line tag digests output
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jekwesco authored and aexvir committed Apr 22, 2024
1 parent 8de7c88 commit fd47216
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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<<EOF" >>"$GITHUB_OUTPUT"
echo "$(cat /kaniko/image-tag-digest)" >>"$GITHUB_OUTPUT"
echo 'EOF' >>"$GITHUB_OUTPUT"


if [ -n "$INPUT_SKIP_UNCHANGED_DIGEST" ]; then
Expand Down

0 comments on commit fd47216

Please sign in to comment.