Skip to content

Commit

Permalink
try github-release regex for renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywhitaker3 committed Feb 26, 2024
1 parent b021996 commit cd5135a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions ansible/inventory/group_vars/k3s/k3s.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# renovate: datasource=github-releases depName=k3s-io/k3s
k3s_version: v1.29.0+k3s1

k3s_server_args: ""
Expand Down
16 changes: 14 additions & 2 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
"rebaseWhen": "conflicted",
"argocd": {
"fileMatch": [
"argo/apps/apps/.+\\.yaml$",
"argo/apps/cluster/.+\\.yaml$"
"argo/cluster/.*\\.app\\.yaml"
]
},
"packageRules": [
Expand Down Expand Up @@ -53,5 +52,18 @@
"matchPackageNames": ["linuxserver/plex"],
"automerge": false
}
],
"customManagers": [
{
"customType": "regex",
"description": ["Process custom dependencies"],
"fileMatch": [
"ansible/.*/.*\\.yaml$"
],
"matchStrings": [
"(?m:# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( repository=(?<registryUrl>\\S+))?\\n.+?: \"?(?<currentValue>\\S+?)\"?$)"
],
"datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}github-releases{{/if}}"
}
]
}

0 comments on commit cd5135a

Please sign in to comment.