Skip to content

Commit 746c021

Browse files
committed
feat: add renovate + github action
1 parent d676b3a commit 746c021

2 files changed

Lines changed: 86 additions & 0 deletions

File tree

.github/workflow/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+
schedule:
5+
- cron: "0 4 * * 1" # Every Monday at 4:00 AM UTC
6+
workflow_dispatch:
7+
8+
jobs:
9+
renovate:
10+
name: Renovate
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Self-hosted Renovate
17+
uses: renovatebot/github-action@v41
18+
with:
19+
configurationFile: renovate.json
20+
env:
21+
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
22+

renovate.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended"
5+
],
6+
"schedule": ["at any time"],
7+
"timezone": "Europe/Paris",
8+
"labels": ["dependencies"],
9+
"assignees": [],
10+
"reviewers": [],
11+
"dependencyDashboard": true,
12+
"dependencyDashboardTitle": "Renovate Dashboard",
13+
"packageRules": [
14+
{
15+
"description": "Group all Kotlin-related updates together",
16+
"matchPackagePrefixes": ["org.jetbrains.kotlin"],
17+
"groupName": "Kotlin",
18+
"automerge": false
19+
},
20+
{
21+
"description": "Group all JOSDK updates together",
22+
"matchPackagePrefixes": ["io.javaoperatorsdk"],
23+
"groupName": "Java Operator SDK"
24+
},
25+
{
26+
"description": "Group all Fabric8 updates together",
27+
"matchPackagePrefixes": ["io.fabric8"],
28+
"groupName": "Fabric8"
29+
},
30+
{
31+
"description": "Require manual review for major updates",
32+
"matchUpdateTypes": ["major"],
33+
"automerge": false,
34+
"labels": ["dependencies", "major-update"]
35+
},
36+
{
37+
"description": "Group GitHub Actions updates",
38+
"matchManagers": ["github-actions"],
39+
"groupName": "GitHub Actions",
40+
"automerge": true,
41+
"automergeType": "pr",
42+
"platformAutomerge": true
43+
},
44+
{
45+
"description": "Group Gradle wrapper updates",
46+
"matchManagers": ["gradle-wrapper"],
47+
"groupName": "Gradle Wrapper",
48+
"automerge": false
49+
},
50+
{
51+
"description": "Group Jib base image updates (eclipse-temurin)",
52+
"matchDatasources": ["docker"],
53+
"matchPackageNames": ["eclipse-temurin"],
54+
"groupName": "JRE Base Image",
55+
"automerge": false
56+
}
57+
],
58+
"gradle": {
59+
"enabled": true
60+
},
61+
"docker": {
62+
"enabled": true
63+
}
64+
}

0 commit comments

Comments
 (0)