How to find Docker tags from registry that match the tag pattern of the source to be updated #33016
Unanswered
mthalman
asked this question in
Request Help
Replies: 1 comment 5 replies
-
Look into |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How are you running Renovate?
A Mend.io-hosted app
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
No response
Please tell us more about your question or problem
I've been trying to find a way to configure Renovate to handle a scenario where I need the version query of a Docker repository to look for tags that match the pattern of the tag from the source file that needs to be updated.
For example, my source file is a custom XML file containing this line that I want to get updated:
I want
debian-11-helix-amd64
to be updated todebian-12-helix-amd64
. But I want this to be generalized to work for any tag prefix name. In other words, I don't want to have to hardcode my regex pattern to be specific to the Linux distributiondebian
.This is what I've tried:
The problem is that Renovate's query of the registry is finding tags belonging to other Linux distributions which do not match the prefix of the text I want to update.
To illustrate, this is a sample of the tags that exist for that Docker repository:
So Renovate finds the
fedora-41-helix
, applies the extract version template, and sees that 41 is the largest version so it wants to update my tag todebian-41-helix-amd64
, notdebian-12-helix-amd64
.I need a way to influence the extract logic dynamically so that it uses the prefix value of the text from the source file. Is there a way I can define the
extractVersionTemplate
that it can reference a capture group from the matchString or something?Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions