Container image package not showing in repo packages #163656
-
Select Topic AreaQuestion BodyI have a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
You are doing everything correctly regarding the LABEL org.opencontainers.image.source and token setup, but there’s an important detail: What’s happening: The package appears in your account or organization’s global packages, but is not connected to any repository. Easiest way: Publish the container image via GitHub Actions using the ${{ secrets.GITHUB_TOKEN }} — in this case, GitHub will automatically link the package to the repository. Your situation is described here: When you push a container image from the command line, the image is not linked to a repository by default. This is the case even if you tag the image with a namespace that matches the name of the repository. (Working with the Container registry) How to manually link a package to a repository: |
Beta Was this translation helpful? Give feedback.
You are doing everything correctly regarding the LABEL org.opencontainers.image.source and token setup, but there’s an important detail:
If you push the container image directly from the command line (using buildah/podman/docker), even with the LABEL set, the package will not be automatically linked to the repository. This is the expected behavior of GitHub Container Registry.
What’s happening:
The package appears in your account or organization’s global packages, but is not connected to any repository.
The LABEL org.opencontainers.image.source only adds metadata, but does not create the repository linkage automatically.
How to link the package to your repository:
Easiest way: Publish the…