-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Upload failed on ghcr.io, no details #177
Comments
Looks like the default I had to create a Personal Access Token and use it to publish Docker images... Hope it will help someone someday! |
The default GITHUB_TOKEN works, if you link the repository doing the build to the package and grant the actions running the repository write access. I'm doing exactly this in https://github.com/klaernie/hassio-addons/blob/main/.github/workflows/ci.yml |
Uh oh! This needs to be re-opened. I built an addon with the starter template, and I'm running into the same issue. Not only does the error message still need to be clarified, but it would be nice to have some documentation on how to use @klaernie 's workaround or something. |
According to this the linking is done automatically: However it "recommends" adding this to the Dockerfile for that: but... that didn't do the trick. Then I noticed here that this needs to be added to the job:
BAM! now it works! Despite having never published a package, it uploaded just fine using only GITHUB_TOKEN. Hope that helps you @bokub as well. |
Created a PR for the fixes. Note that this issue still applies, the error message does not indicate what went wrong. |
Hello,
I'm currently trying to use this repo as a GitHub Action, here is my workflow:
Whenever the Action runs, the login step succeeds, then the build step fails with the following output:
Did I do something wrong?
Is there any way to display the upload error? ("Upload failed" is not enough to understand what went wrong)
Thanks!
The text was updated successfully, but these errors were encountered: