Github Container registry (ghcr.io) is not resolving <my-image>:latest #23606
|
Hello, I’m able to pull my packages referencing a specific version. For instance, the following works: However, the following does not: The kubernetes cluster reports “failed to resolve” Is the use of Thank you for anyone with some experience using the - E |
Replies: 4 comments
|
In my experience it works just fine. One thing to be aware of: The |
|
That’s what I was missing. For some reason, I was expecting “latest” to be a feature of the pull request; i.e., that it would pull the “latest” version of the package. To your point, “latest” is just a tag used “by convention” that I need to create. In order to maintain package versions, I should create a copy of the package; one with the tag, one with the whatever I’m using to track the versions (in my case $GITHUB_RUN_ID). Otherwise, I would have to figure out a way to both add and remove the label to ensure only one has that “honor” of being the latest. Is there another more conventional approach? |
|
You don’t need to remove the tag, if you push a new Convention for container images in general is that |
|
@airtower-luna Thank you. That is helpful and completes the understanding required to get the job done. - E |
In my experience it works just fine. One thing to be aware of: The
latesttag isn’t automatic, you need to push it like any other tag.