Use separateMajorMinor: false in conjuction with disableMajor for matchDatasource or matchPackage #28531
-
What would you like help with?I would like help with my configuration 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 problemI have a file where I want to hold for documentation purpose the docker images that are supported by a helm chart: # renovate: datasource=docker depName=mongo versioning=docker
{{- define "version_5" -}}5.0.24{{- end -}}
# renovate: datasource=docker depName=mongo versioning=docker
{{- define "version_6" -}}6.0.13{{- end -}}
# renovate: datasource=docker depName=mongo versioning=docker
{{- define "version_7" -}}7.0.7{{- end -}} When trying to update the docker versions in this file, because one of the requirements for me is to have all the updates in one PR, so having separateMajorMinor: false creates me an issue because all the versions are updated to latest which will be major for the first 2 sets (5.0.24 to 7.0.8), (6.0.13 to 7.0.8) and patch (7.0.7 to 7.0.8). separateMajorMinor: false is used for the helm chart update to cover situations when I get two versions (patch/minor and major) for same helm chart. What I want in return is one Pr with: The problem here raises from the fact that the name of the dep, package are the same. Is there any possibility to put an alias on customManagers? I'm thinking to create one set of regex for each version and use it if possible in a packageRule to disable major for first two?! (don't know if possible though) Logs (if relevant)Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Would it be an option to use separateMajorMinor at packageRules level? |
Beta Was this translation helpful? Give feedback.
Manage to solve it by creating a separate grouping for docker images, disabling major for docker datasources and moving separateMajorMinor to packageRule from generic place.