Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using a tag AND latest brokes the workflow #66

Open
jtama opened this issue Mar 22, 2024 · 4 comments
Open

Using a tag AND latest brokes the workflow #66

jtama opened this issue Mar 22, 2024 · 4 comments

Comments

@jtama
Copy link

jtama commented Mar 22, 2024

Summary

When using the action with tag_with_latest: true and tag: toto, the action seems to produce a multi-line output. The action is then considered as failed even thought it's not with the following message :

Error: Unable to process file command 'output' successfully.
Error: Invalid format 'myprivateregistry myimage:latest@sha256:d8d07c55b7ba2d51bc07971c1ae68c632cf13c651a7d0ad5453b395364c2d6fc'

Seems related
https://stackoverflow.com/questions/74137120/how-to-fix-or-avoid-error-unable-to-process-file-command-output-successfully

The action works fine if only one tag is produced.

Version

at least 0.11.0 and 0.12.0.

@jekwesco
Copy link
Contributor

jekwesco commented Apr 4, 2024

This problem is resolved using the multiline output as described by that link in entrypoint.sh:

echo "image-tag-digest<<EOF" >> $GITHUB_OUTPUT
echo "$(cat /kaniko/image-tag-digest)" >> "$GITHUB_OUTPUT"
echo 'EOF' >> $GITHUB_OUTPUT

in fact they use the same technique just a bit above in the code to output the docker config.json.

@jekwesco
Copy link
Contributor

@aexvir any chance to get this merged in anytime soon via my PR? #70

@aexvir
Copy link
Member

aexvir commented Apr 22, 2024

Oops, sorry, will check this in a couple hours. Thanks for flagging it!

@jekwesco
Copy link
Contributor

@jtama this issue should be fixed in the release @aexvir did earlier today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants