Skip to content

Commit

Permalink
renovate: match all Makefiles
Browse files Browse the repository at this point in the history
Remove the restrictions on matching only some Makefiles in renovate, since it would be
nice to auto update additional docker dependencies as we add them.

Signed-off-by: William Findlay <will@isovalent.com>
  • Loading branch information
willfindlay committed Feb 20, 2024
1 parent 760c62b commit 23507e6
Showing 1 changed file with 59 additions and 23 deletions.
82 changes: 59 additions & 23 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{
// self-hosted configuration
"username": "cilium-renovate[bot]",
"repositories": ["cilium/tetragon"],
"repositories": [
"cilium/tetragon"
],
// renovate first reads this configuration, then reads the repository
// configuration, since we don't split between the self-hosted and the
// repository configuration, this can lead to duplicate of some areas of the
// config, for example the regex. See:
// https://docs.renovatebot.com/self-hosted-configuration/#requireconfig
"requireConfig": "ignored",
"allowedPostUpgradeCommands": [
"^/tmp/install-buildx$",
"^make codegen$",
"^make generate$",
"^/tmp/install-buildx$",
"^make codegen$",
"^make generate$",
"^make vendor$",
"^make -C install/kubernetes$",
"^go mod vendor$",
Expand All @@ -38,8 +40,7 @@
"contrib/rthooks/tetragon-oci-hook/go.sum",
"*Dockerfile*",
"install/kubernetes/tetragon/values.yaml",
"Makefile.cli",
"Makefile",
"**/*Makefile*"
],
"postUpdateOptions": [
"gomodTidy"
Expand Down Expand Up @@ -197,14 +198,22 @@
},
{
// postUpgradeTasks and postUpdateOptions for all Go updates
"matchManagers": ["gomod"],
"matchManagers": [
"gomod"
],
"postUpdateOptions": [
// update source import paths on major updates
"gomodUpdateImportPaths",
],
postUpgradeTasks: {
"commands": ["/tmp/install-buildx", "make codegen", "make generate"],
"fileFilters": ["**/**"],
"commands": [
"/tmp/install-buildx",
"make codegen",
"make generate"
],
"fileFilters": [
"**/**"
],
"executionMode": "branch"
}
},
Expand All @@ -219,8 +228,13 @@
// We need to trigger a golang install manually here because in some
// cases it might not be preinstalled, see:
// https://github.com/renovatebot/renovate/discussions/23485
"commands": ["install-tool golang $(grep -oP '^go \\K.+' go.mod)", "make vendor"],
"fileFilters": ["**/**"],
"commands": [
"install-tool golang $(grep -oP '^go \\K.+' go.mod)",
"make vendor"
],
"fileFilters": [
"**/**"
],
"executionMode": "branch"
},
},
Expand All @@ -240,8 +254,12 @@
],
// lint and generate files for helm chart
"postUpgradeTasks": {
"commands": ["make -C install/kubernetes"],
"fileFilters": ["**/**"],
"commands": [
"make -C install/kubernetes"
],
"fileFilters": [
"**/**"
],
"executionMode": "branch"
}
},
Expand Down Expand Up @@ -274,15 +292,19 @@
{
// no updates into stable branches (apart from security ones)
"enabled": false,
"matchPackagePatterns": ["*"],
"matchPackagePatterns": [
"*"
],
"matchBaseBranches": [
"v1.0",
]
},
{
// update the base image for stable branches
"enabled": true,
"matchPackageNames": ["docker.io/library/alpine"],
"matchPackageNames": [
"docker.io/library/alpine"
],
"matchBaseBranches": [
"v1.0",
]
Expand Down Expand Up @@ -339,20 +361,34 @@
{
// do not update those packages as they are replaced by the local copy
// see https://github.com/cilium/tetragon/blob/7623babdf54e9a38326420c1b188308f6cf96fff/go.mod#L178-L179
"matchPackageNames": ["github.com/cilium/tetragon/api", "github.com/cilium/tetragon/pkg/k8s", "github.com/cilium/tetragon"],
"matchManagers": ["gomod"],
"matchPackageNames": [
"github.com/cilium/tetragon/api",
"github.com/cilium/tetragon/pkg/k8s",
"github.com/cilium/tetragon"
],
"matchManagers": [
"gomod"
],
"enabled": false
},
{
// do not update sigstore/cosign-installer as it breaks CI
"matchPackageNames": ["sigstore/cosign-installer"],
"matchManagers": ["github-actions"],
"matchPackageNames": [
"sigstore/cosign-installer"
],
"matchManagers": [
"github-actions"
],
"enabled": false
},
{
// do not update docker.io/library/ubuntu container image in utility images
"matchPackageNames": ["docker.io/library/ubuntu"],
"matchManagers": ["dockerfile"],
"matchPackageNames": [
"docker.io/library/ubuntu"
],
"matchManagers": [
"dockerfile"
],
"matchFileNames": [
"Dockerfile.clang",
"Dockerfile.clang-format"
Expand Down Expand Up @@ -429,7 +465,7 @@
"customType": "regex",
// explicitely not writing ^Makefile$ to match files with Makefile.extension
"fileMatch": [
"^Makefile"
"Makefile"
],
// This regex is for upgrading docker image full reference in Makefiles, for examples:
//
Expand Down Expand Up @@ -462,4 +498,4 @@
]
}
]
}
}

0 comments on commit 23507e6

Please sign in to comment.