Skip to content

Commit

Permalink
renovate: update config for new Go module and cleanups
Browse files Browse the repository at this point in the history
Add the new entry for the tetragon OCI hook Go module and try to remove
useless packageRules by adding the postUpgradeTasks and
postUpdateOptions directly to all Go updates.

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
  • Loading branch information
mtardy committed Oct 3, 2023
1 parent f293e2c commit 4baded7
Showing 1 changed file with 15 additions and 56 deletions.
71 changes: 15 additions & 56 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
"api/go.sum",
"pkg/k8s/go.mod",
"pkg/k8s/go.sum",
"contrib/rthooks/tetragon-oci-hook/go.mod",
"contrib/rthooks/tetragon-oci-hook/go.sum",
"Dockerfile*",
"install/kubernetes/values.yaml",
"Makefile.cli",
Expand Down Expand Up @@ -94,11 +96,8 @@
"separateMinorPatch": false,
},
{
// not grouping Go minor and major updates together
"matchFileNames": [
"go.mod",
"go.sum"
],
// postUpgradeTasks and postUpdateOptions for all Go updates
"matchManagers": ["gomod"],
"postUpdateOptions": [
// update source import paths on major updates
"gomodUpdateImportPaths",
Expand All @@ -107,14 +106,7 @@
"commands": ["/tmp/install-buildx", "make codegen", "make generate"],
"fileFilters": ["**/**"],
"executionMode": "branch"
},
"matchUpdateTypes": [
"major",
"minor",
],
"matchBaseBranches": [
"main"
],
}
},
{
"groupName": "all go dependencies main",
Expand All @@ -123,15 +115,6 @@
"go.mod",
"go.sum"
],
"postUpdateOptions": [
// update source import paths on major updates
"gomodUpdateImportPaths",
],
"postUpgradeTasks": {
"commands": ["/tmp/install-buildx", "make codegen", "make generate"],
"fileFilters": ["**/**"],
"executionMode": "branch"
},
"matchUpdateTypes": [
"patch",
"digest",
Expand All @@ -150,15 +133,6 @@
"api/go.mod",
"api/go.sum"
],
"postUpdateOptions": [
// update source import paths on major updates
"gomodUpdateImportPaths",
],
"postUpgradeTasks": {
"commands": ["/tmp/install-buildx", "make codegen", "make generate"],
"fileFilters": ["**/**"],
"executionMode": "branch"
},
"matchUpdateTypes": [
"major",
"minor",
Expand All @@ -172,44 +146,29 @@
],
},
{
// not grouping major and minor updates together
"groupName": "all k8s pkg go dependencies main",
"groupSlug": "all-k8s-pkg-go-deps-main",
"matchFileNames": [
"pkg/k8s/go.mod",
"pkg/k8s/go.sum"
],
"postUpdateOptions": [
// update source import paths on major updates
"gomodUpdateImportPaths",
],
"postUpgradeTasks": {
"commands": ["/tmp/install-buildx", "make codegen", "make generate"],
"fileFilters": ["**/**"],
"executionMode": "branch"
},
"matchUpdateTypes": [
"major",
"minor",
"patch",
"digest",
"pin",
"pinDigest"
],
"matchBaseBranches": [
"main"
],
},
{
"groupName": "all k8s pkg go dependencies main",
"groupSlug": "all-k8s-pkg-go-deps-main",
"groupName": "all oci hook go dependencies main",
"groupSlug": "all-oci-hook-go-deps-main",
"matchFileNames": [
"pkg/k8s/go.mod",
"pkg/k8s/go.sum"
"contrib/rthooks/tetragon-oci-hook/go.mod",
"contrib/rthooks/tetragon-oci-hook/go.sum",
],
"postUpdateOptions": [
// update source import paths on major updates
"gomodUpdateImportPaths",
],
"postUpgradeTasks": {
"commands": ["/tmp/install-buildx", "make codegen", "make generate"],
"fileFilters": ["**/**"],
"executionMode": "branch"
},
"matchUpdateTypes": [
"patch",
"digest",
Expand Down

0 comments on commit 4baded7

Please sign in to comment.