package rule not applying registry url #29443
Unanswered
mikethecalamity
asked this question in
Request Help
Replies: 2 comments 11 replies
-
You need to try registryAliases |
Beta Was this translation helpful? Give feedback.
11 replies
-
Hi there, Get your discussion fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. Discussions without reproductions are less likely to be converted to Issues. To get started, please read our guide on creating a minimal reproduction. Good luck, The Renovate team |
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
-
What would you like help with?
I think I found a bug
How are you running Renovate?
Self-hosted
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
Gitlab
Please tell us more about your question or problem
The following was tested with Renovate 35.350.1
We have a custom registry that proxies docker hub, like:
https://my.registry.com/ext.hub.docker.com/library/alpine:3.20.0
. We then also use environment variables in our Dockerfiles and yamls to define the registry, like:${MY_REGISTRY}/ext.hub.docker.com/library/alpine:3.20.0
.So what I'm trying to do is use a custom matcher to grab
ext.hub.docker.com/library/alpine
as the package, then apply the registry when there is a package prefix ofext
(see config below).My package rule seems to be ignored though, almost like it is automatically assuming the
ext.hub.docker.com
is the registry and never checks the package rule. According to the logs (see below) it is correctly pulling thepackageName
based on thematchStrings
. It's just never being found with the package prefix matcher, thus never being assigned the correct registry.I've also tried
matchPackagePattern
.Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions