Configure Renovate to target specific branches for Docker Dependency Updates #42313
-
How are you running Renovate?Self-hosted Renovate CLI Which platform you running Renovate on?GitLab (.com or self-hosted) Which version of Renovate are you using?41.115.1 Please tell us more about your question or problemHello, I'm trying to configure a preset that controls which branchs receive the MRs, with specific rules regarding which branches the updates should be sent to. For a specific subgroup or project, Renovate should send MRs for Docker dependencies to both develop and master branches. Is it possible to set up a Renovate preset specifically for Docker dependencies that follows the above branch-specific MR creation rules ? I trying the following preset via packageRules but, it still send MR to both develop and master branchs despite defining matchRepositories option Logs (if relevant)No response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
This looks like a logic issue with how To restrict {
"packageRules": [
{
"matchBaseBranches": ["develop"],
"matchRepositories": ["!/^MyGroup/mysubgroup/myprojects/"],
"enabled": false
}
]
}One gotcha: |
Beta Was this translation helpful? Give feedback.
This looks like a logic issue with how
baseBranchesinteracts withpackageRules. Since you've defined both branches in the globalbaseBranchesarray, Renovate will scan and attempt updates for both across all repositories.packageRulesdon't filter which branches are scanned; they only apply settings once an update is discovered.To restrict
developupdates to specific projects, you need to explicitly setenabled: falsefor all other repositories when the base branch isdevelop:{ "packageRules": [ { "matchBaseBranches": ["develop"], "matchRepositories": ["!/^MyGroup/mysubgroup/myprojects/"], "enabled": false } ] }One gotcha:
matchRepositoriesmatches the fu…