How do I override the datasource to pick up dependencies from github-tags before registry url? #30607
-
What would you like help with?I would like help with my configuration How are you running Renovate?Mend Renovate hosted app on github.com If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.github Please tell us more about your question or problemCurrently, I have an internal nexus host that is not open to the public. I don't want to self-host renovatebot to hit this host. Instead, renovatebot has access to my repo called When I try to use these data sources, renovate continues to pick up the nexus registry url instead. Renovate config {
$schema: "https://docs.renovatebot.com/renovate-schema.json",
customManagers: [
{
customType: "regex",
fileMatch: [".*/Chart.y[a]?ml$"],
matchStrings: [
"name:\\s+(?<depName>.*?)",
"version: (?<currentValue>.*?)"
],
datasourceTemplate: "github-tags",
depNameTemplate: "org/{{{depName}}}",
versioningTemplate: "semver"
}
]
} Here is my apiVersion: v2
name: service
version: 0.0.1
dependencies:
- name: deploy
version: ~1.10.0
repository: https://nexus.prod.example.com/repository/helm_charts/ and my dependencies:
- name: deploy
repository: https://nexus.prod.example.com/repository/helm_charts/
version: 1.10.1
digest: sha256:<snip>
generated: "2023-08-10T17:12:15.307546-05:00" How do I make helmv3 use github-tags or how can I override my package to specifically use github-tags or github-releases ? Logs (if relevant)LogsIn my log when I run renovate locally, it picks up nexus because I'm on the VPN "helmv3": [
{
"deps": [
{
"depName": "deploy",
"currentValue": "~1.10.0",
"registryUrls": [
"https://nexus.prod.example.com/repository/helm_charts/"
],
"updates": [
{
"bucket": "non-major",
"newVersion": "1.13.2",
"newValue": "~1.13.0",
"newDigest": "<snip>",
"releaseTimestamp": "2023-10-16T13:58:26.113Z",
"newMajor": 1,
"newMinor": 13,
"newPatch": 2,
"updateType": "minor",
"isRange": true,
"branchName": "renovate/deploy-1.x"
},
{
"bucket": "major",
"newVersion": "11.1.0",
"newValue": "~11.1.0",
"newDigest": "<snip>",
"releaseTimestamp": "2024-08-05T12:20:11.140Z",
"newMajor": 11,
"newMinor": 1,
"newPatch": 0,
"updateType": "major",
"isRange": true,
"branchName": "renovate/deploy-11.x"
}
],
"packageName": "deploy",
"versioning": "helm",
"warnings": [],
"registryUrl": "https://nexus.prod.example.com/repository/helm_charts",
"currentVersion": "1.10.4",
"currentVersionTimestamp": "2023-09-13T16:00:19.994Z",
"isSingleVersion": false
}
],
"datasource": "helm",
"packageFileVersion": "0.0.1",
"lockFiles": ["deploy/application/Chart.lock"],
"packageFile": "deploy/application/Chart.yaml"
}, If I'm not on the VPN, it doesn't pick up nexus, and it does not search github-tags or github-releases. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I found a way around this issue by
|
Beta Was this translation helpful? Give feedback.
I found a way around this issue by
hostRules
to disable the hostnexus.prod.example.com
customManagers
to pick up the dependency (as shown above)ignoreDeps
to disable the dependency but this does not remove the warning in the issue dashboard