1
0
Fork 0
mirror of https://github.com/aevea/action-kaniko.git synced 2025-01-30 13:59:38 +01:00

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
This commit is contained in:
Jason Kratz 2024-04-04 15:36:38 -05:00 committed by Alex Viscreanu
parent 8de7c88b27
commit fd47216104
No known key found for this signature in database

View file

@ -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