Skip to content

Commit 9e67cb3

Browse files
committed
Add Renovate to automate Version Bumps
1 parent 61b36b1 commit 9e67cb3

File tree

3 files changed

+43
-7
lines changed

3 files changed

+43
-7
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,3 @@ updates:
1818
directory: "/"
1919
schedule:
2020
interval: "daily"
21-
22-
- package-ecosystem: "docker"
23-
directories:
24-
- "**/*"
25-
open-pull-requests-limit: 15
26-
schedule:
27-
interval: "daily"

.github/renovate.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"extends": ["config:base"],
3+
"enabledManagers": ["dockerfile", "custom.regex"],
4+
"labels": ["dependencies", "docker"],
5+
"prConcurrentLimit": 15,
6+
"prHourlyLimit": 0,
7+
"recreateClosed": true,
8+
"additionalBranchPrefix": "{{packageFileDir}}-",
9+
"commitMessageSuffix": "[{{packageFileDir}}]",
10+
"customManagers": [
11+
{
12+
"customType": "regex",
13+
"fileMatch": ["(^|/)Dockerfile[^/]*$"],
14+
"matchStrings": [
15+
"ARG BASE_IMAGE=(?<depName>[^:]+):(?<currentValue>\\S+)"
16+
],
17+
"datasourceTemplate": "docker",
18+
"versioningTemplate": "ubuntu"
19+
}
20+
]
21+
}

.github/workflows/renovate.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Renovate
2+
3+
on:
4+
workflow_dispatch: # Allows manual trigger from GitHub UI
5+
schedule:
6+
- cron: "0 9 * * *" # every day at 9:00 AM UTC
7+
8+
jobs:
9+
renovate:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v6
14+
15+
- name: Run Renovate
16+
uses: renovatebot/[email protected]
17+
with:
18+
configurationFile: .github/renovate.json
19+
env:
20+
RENOVATE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
RENOVATE_REPOSITORIES: '["NVIDIA/gpu-driver-container"]'
22+
RENOVATE_ONBOARDING: false

0 commit comments

Comments
 (0)