Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
refactor(ci): fine-tune Renovatebot (#1932)
Browse files Browse the repository at this point in the history
* style(ci): format json

Signed-off-by: András Jáky <[email protected]>

* refactor(ci): use `chore(deps)` semantic PR title

Signed-off-by: András Jáky <[email protected]>

* refactor(ci): group go deps by patch release type

Signed-off-by: András Jáky <[email protected]>

* feat(ci): setup Renovatebot for Python dep updates

Signed-off-by: András Jáky <[email protected]>

* feat(ci): group Makefile dependency updates

Signed-off-by: András Jáky <[email protected]>

* feat(ci): group GHA dep updates together

Signed-off-by: András Jáky <[email protected]>

---------

Signed-off-by: András Jáky <[email protected]>
  • Loading branch information
akijakya authored Jul 19, 2024
1 parent ea733e3 commit cb93d27
Showing 1 changed file with 102 additions and 57 deletions.
159 changes: 102 additions & 57 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
"helpers:pinGitHubActionDigestsToSemver"
"helpers:pinGitHubActionDigestsToSemver",
":semanticCommitTypeAll(chore)"
],
"configMigration": true,
"customManagers": [
Expand All @@ -22,7 +23,9 @@
}
],
"dependencyDashboardAutoclose": true,
"dependencyDashboardLabels": ["dependencies"],
"dependencyDashboardLabels": [
"dependencies"
],
"dependencyDashboardOSVVulnerabilitySummary": "all",
"enabled": true,
"enabledManagers": [
Expand All @@ -33,10 +36,13 @@
"github-actions",
"gomod",
"helm-values",
"helmv3"
"helmv3",
"python"
],
"forkProcessing": "disabled",
"labels": ["dependencies"],
"labels": [
"dependencies"
],
"ignoreDeps": [
"github.com/openclarity/vmclarity/api/server",
"github.com/openclarity/vmclarity/api/client",
Expand All @@ -63,67 +69,19 @@
"osvVulnerabilityAlerts": true,
"packageRules": [
{
"matchCategories": ["golang"],
"matchCategories": [
"golang"
],
"addLabels": [
"go"
],
"description": [
"Add go label to PRs which bumps go dependencies."
]
},
{
"matchCategories": ["kubernetes"],
"addLabels": [
"kubernetes"
],
"description": [
"Add kubernetes label to PRs which bumps kubernetes dependencies."
]
},
{
"matchFileNames": [
"Makefile",
"makefile.d/*.mk"
],
"addLabels": [
"build"
],
"extractVersion": "^v(?<version>.*)$",
"semanticCommitType": "build",
"description": [
"Add build label to PRs which are related to build tools defined in Makefiles.",
"Use build type for semantic commits."
]
},
{
"matchDatasources": [
"github-tags"
],
"addLabels": [
"ci"
],
"semanticCommitType": "ci",
"description": [
"Add ci label to PRs which are related to Github Actions.",
"Use ci type for semantic commits."
]
},
{
"matchFileNames": [
"e2e/**",
"testenv/**"
],
"addLabels": [
"test"
],
"semanticCommitType": "test",
"description": [
"Add test label to PRs which are related to Github Actions.",
"Use test type for semantic commits."
]
},
{
"groupName": "Docker",
"groupSlug": "docker",
"matchDatasources": [
"go"
],
Expand All @@ -137,6 +95,7 @@
},
{
"groupName": "gorm.io",
"groupSlug": "gorm",
"matchDatasources": [
"go"
],
Expand All @@ -150,6 +109,7 @@
},
{
"groupName": "Azure SDK",
"groupSlug": "azure-sdk",
"matchDatasources": [
"go"
],
Expand All @@ -162,6 +122,7 @@
},
{
"groupName": "Google SDK",
"groupSlug": "google-sdk",
"matchDatasources": [
"go"
],
Expand All @@ -174,6 +135,7 @@
},
{
"groupName": "Containerd",
"groupSlug": "containerd",
"matchDatasources": [
"go"
],
Expand All @@ -186,6 +148,7 @@
},
{
"groupName": "Kubernetes",
"groupSlug": "kubernetes",
"matchDatasources": [
"go"
],
Expand All @@ -197,6 +160,86 @@
"Group Kubernetes dependency updates in single PR."
]
},
{
"groupName": "Go patches",
"groupSlug": "go-patches",
"matchDatasources": [
"go"
],
"matchUpdateTypes": [
"patch"
],
"description": [
"Group Go dependency patch updates in single PR."
]
},
{
"groupName": "Python",
"groupSlug": "python",
"matchCategories": [
"python"
],
"addLabels": [
"python"
],
"description": [
"Add python label to PRs which bumps python dependencies.",
"Group Python dependency updates in single PR."
]
},
{
"matchCategories": [
"kubernetes"
],
"addLabels": [
"kubernetes"
],
"description": [
"Add kubernetes label to PRs which bumps kubernetes dependencies."
]
},
{
"groupName": "Makefile",
"groupSlug": "makefile",
"matchFileNames": [
"Makefile",
"makefile.d/*.mk"
],
"addLabels": [
"build"
],
"extractVersion": "^v(?<version>.*)$",
"description": [
"Add build label to PRs which are related to build tools defined in Makefiles.",
"Group Makefile dependency updates in single PR."
]
},
{
"groupName": "Github Actions",
"groupSlug": "github-actions",
"matchDatasources": [
"github-tags"
],
"addLabels": [
"ci"
],
"description": [
"Add ci label to PRs which are related to Github Actions.",
"Group CI dependency updates in single PR."
]
},
{
"matchFileNames": [
"e2e/**",
"testenv/**"
],
"addLabels": [
"test"
],
"description": [
"Add test label to PRs which are related to Github Actions."
]
},
{
"groupName": "Azure Bicep",
"matchDatasources": [
Expand Down Expand Up @@ -264,6 +307,8 @@
"timezone": "Etc/UTC",
"vulnerabilityAlerts": {
"enabled": true,
"labels": ["security"]
"labels": [
"security"
]
}
}

0 comments on commit cb93d27

Please sign in to comment.