Skip to content

Commit

Permalink
Add renovate config and automated GPU driver updates for CUDA (#51)
Browse files Browse the repository at this point in the history
* Add renovate config and automated GPU driver updates for CUDA

* remove hardcoded components in renovate.json and use comment

* remove package rule
  • Loading branch information
ganeshkumarashok committed Aug 16, 2024
1 parent b798217 commit 6e18500
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions driver_config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cuda:
# renovate: datasource=custom.nvidia-driver depName=nvidia-cuda-driver versioning=loose
version: "550.90.07"

grid:
Expand Down
32 changes: 32 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"driver_config.yml"
],
"matchStrings": [
"#\\s*renovate:\\s*(datasource=(?<datasource>.*?) )?depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s*.*?version.*\\\"(?<currentValue>.*)\\\""
]
}
],
"customDatasources": {
"nvidia-driver": {
"defaultRegistryUrlTemplate": "https://docs.nvidia.com/datacenter/tesla/drivers/releases.json",
"transformTemplates": [
"{ \"releases\": $map($reduce($map($keys($), function($k) { { \"key\": $k, \"value\": $lookup($, $k) } }), function($acc, $v) { $append($acc, $v.value.driver_info) }, []), function($info) { { \"version\": $info.release_version } }) }"
]
}
},
"logLevelRemap": [
{
"matchMessage": "/^Custom manager fetcher/",
"newLogLevel": "debug"
},
{
"matchMessage": "/custom datasource/",
"newLogLevel": "debug"
}
]
}

0 comments on commit 6e18500

Please sign in to comment.