Unable to pull package of public personal repository pushed to github package #26863
-
Greetings, Thanks for adding support for github packages to upload container images, I recently was trying out pushing packages to it, https://github.com/tasdikrahman/bhola/pull/55/checks?check_run_id=1140051698,
I tried pulling this image on my machine
I tried checking the answer posted here Just published a new GH package. Have few questions, but couldn’t find the setting to make my container packages public in case they are private. Let me know if I am missing something folks. |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments
-
Another thing which I noticed was that I can see the package under the public repositories GitHubtasdikrahman - OverviewEngineering Platform @gojek, former SRE @razorpay. Weekend chef, Backpacker, past contributor to @oVirt (Redhat). - tasdikrahman |
Beta Was this translation helpful? Give feedback.
-
I notice that your workflow pushes to the old GitHub Packages Docker registry ( |
Beta Was this translation helpful? Give feedback.
-
I get this error now
The block for pushing to github package is this
anything which I need to add/change. |
Beta Was this translation helpful? Give feedback.
-
I see one thing that’s definitely a problem, and one that probably is:
To link your image to the source repository you can either set the |
Beta Was this translation helpful? Give feedback.
-
airtower-luna:
You can actually use any number of components with ghcr.io. For example, At the moment the REPOSITORY component doesn’t automatically associate the image with a repository of the same name, but it hopefully will in a future update. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response, I am not using a PAT which has read, write and delete access for packages which I have added to my repo secrets. this is what I have in the pipeline as of now
the failure now which I get is during the tagging part. Would fail, while I try to tag
I am not sure what am I doing wrong as I hardcoded the part of the OWNER here while it is still being picked up as My pipeline for reference https://github.com/tasdikrahman/bhola/pull/55/checks?check_run_id=1144873993 |
Beta Was this translation helpful? Give feedback.
-
tasdikrahman:
I think this is the issue. You can’t simply
|
Beta Was this translation helpful? Give feedback.
-
airtower-luna:
Awesome, that worked out folks! Only thing was, the flow of making the image go from private to public by follow the instructions here https://docs.github.com/en/packages/managing-container-images-with-github-container-registry/connecting-a-repository-to-a-container-image, would it make sense to have a setting, where the container images of a repo are set to be public by default. What do you folks think |
Beta Was this translation helpful? Give feedback.
-
Also, would there be a container image retention policy similar to how docker hub is doing for free images? |
Beta Was this translation helpful? Give feedback.
-
tasdikrahman:
Good feedback, thank you! We’ve been looking at ways to make this happen. |
Beta Was this translation helpful? Give feedback.
I think this is the issue. You can’t simply
echo
something and use it in the next run. Either you need to set it to output or an environment variable or combine it all into 1 run.