Renovate reads wrong OCI attributes #32904
Unanswered
larsskj
asked this question in
Request Help
Replies: 2 comments
-
|
I have now tried overriding the annotations in an image build: Renovate then works as expected. So I would suggest that you either fix Renovate to read OCI labels as documented, or change documentation to include the fact the annotations apparently override labels. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@larsskj these docs are probably in need of an update: https://github.com/renovatebot/renovate/blob/main/lib/modules/datasource/docker/readme.md According to OCI guidelines, I think it is expected that annotations would override labels for supply chain and provenance metadata. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How are you running Renovate?
Self-hosted Renovate
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
Github app
Please tell us more about your question or problem
I have create an OCI container image build using Podman and pushed it to a private JFrog Artifactory instance. The code is hosted in a private Github Enterprise repository.
After a long session with trial and errors, I've managed to make this work with Renovate running as an app on the private Github Enterprise account.
However, it doesn't work properly: Whilst Renovate generates a new PR for each update of the container image, it points to the wrong repository URL for the code and it doesn't find release notes.
In Artifactory, all relevant metadata is displayed correct.
But the image is built inheriting from another image as usual with container builds; and Renovate's PR points to the source of this parent image instead of the source and release information of the image we've built.
Upon inspection of the image in question, it reveals that both URLs are included in the image: Our custom data is included as labels, but the information from the parent image is included as annotations.
According to Renovate documentation,
however, this seems not to be the case: The image labels contains the proper values, but Renovate seems to use the metadata from the annotations - which point to metadata for the parent image - instead of using the metadata from the labels.
Could this be right?
Beta Was this translation helpful? Give feedback.
All reactions