Skip to content

Commit

Permalink
chore(config): migrate renovate config (#195)
Browse files Browse the repository at this point in the history
* chore(config): migrate config .github/renovate.json5

* update

* update

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: mozillazg <[email protected]>
  • Loading branch information
renovate[bot] and mozillazg authored Nov 30, 2024
1 parent bd671fd commit 1c2b98d
Showing 1 changed file with 124 additions and 119 deletions.
243 changes: 124 additions & 119 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,162 +1,167 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
":gitSignOff",
"helpers:pinGitHubActionDigests"
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'config:recommended',
':gitSignOff',
'helpers:pinGitHubActionDigests',
],
// This ensures that the gitAuthor and gitSignOff fields match
"gitAuthor": "renovate[bot] <[email protected]>",
"includePaths": [
".github/workflows/**",
".github/**",
".github/build.Dockerfile",
"go.mod",
"go.sum",
"Dockerfile",
gitAuthor: 'renovate[bot] <[email protected]>',
includePaths: [
'.github/workflows/**',
'.github/**',
'.github/build.Dockerfile',
'go.mod',
'go.sum',
'Dockerfile',
],
"postUpdateOptions": [
"gomodTidy"
postUpdateOptions: [
'gomodTidy',
],
"pinDigests": true,
"ignorePresets": [
":prHourlyLimit2",
pinDigests: true,
ignorePresets: [
':prHourlyLimit2',
],
"ignoreDeps": [
"github.com/mozillazg/gopacket",
"github.com/mozillazg/pktdump",
"github.com/cilium/ebpf",
"k8s.io/cri-api",
"k8s.io/cri-client",
"github.com/containerd/errdefs",
"github.com/mandiant/GoReSym",
ignoreDeps: [
'github.com/mozillazg/ebpf',
'github.com/mozillazg/gopacket',
'github.com/mozillazg/pktdump',
'github.com/mozillazg/cri-api',
'github.com/mozillazg/cri-client',
'github.com/containerd/errdefs',
'github.com/mandiant/GoReSym',
],
"separateMajorMinor": true,
"separateMultipleMajor": true,
"separateMinorPatch": true,
"pruneStaleBranches": true,
"baseBranches": [
"master"
separateMajorMinor: true,
separateMultipleMajor: true,
separateMinorPatch: true,
pruneStaleBranches: true,
baseBranches: [
'master',
],
"vulnerabilityAlerts": {
"enabled": true
vulnerabilityAlerts: {
enabled: true,
},
"labels": [
"dependencies",
"renovate/stop-updating",
labels: [
'dependencies',
'renovate/stop-updating',
],
"stopUpdatingLabel": "renovate/stop-updating",
"packageRules": [
stopUpdatingLabel: 'renovate/stop-updating',
packageRules: [
{
"enabled": false,
"matchPackageNames": [
"quay.io/lvh-images/kernel-images",
enabled: false,
matchPackageNames: [
'quay.io/lvh-images/kernel-images',
],
"matchUpdateTypes": [
"major",
"minor"
matchUpdateTypes: [
'major',
'minor',
],
},
{
"groupName": "all github action dependencies",
"groupSlug": "all-github-action",
"extends": ["schedule:monthly"],
"matchPaths": [
".github/workflows/**"
],
"matchUpdateTypes": [
"major",
"minor",
"digest",
"patch",
"pin",
"pinDigest"
]
groupName: 'all github action dependencies',
groupSlug: 'all-github-action',
extends: [
'schedule:monthly',
],
matchFileNames: [
'.github/workflows/**',
],
matchUpdateTypes: [
'major',
'minor',
'digest',
'patch',
'pin',
'pinDigest',
],
},
{
"groupName": "all go dependencies master",
"groupSlug": "all-go-deps-master",
"extends": ["schedule:monthly"],
"matchFiles": [
"go.mod",
"go.sum"
],
"postUpdateOptions": [
// update source import paths on major updates
"gomodUpdateImportPaths",
],
"matchUpdateTypes": [
"major",
"minor",
"digest",
"patch",
"pin",
"pinDigest"
],
"matchBaseBranches": [
"master"
groupName: 'all go dependencies master',
groupSlug: 'all-go-deps-master',
extends: [
'schedule:monthly',
],
matchFileNames: [
'go.mod',
'go.sum',
],
postUpdateOptions: [
// update source import paths on major updates
'gomodUpdateImportPaths',
],
matchUpdateTypes: [
'major',
'minor',
'digest',
'patch',
'pin',
'pinDigest',
],
matchBaseBranches: [
'master',
],
},
{
"groupName": "Go",
"extends": ["schedule:monthly"],
"matchDepNames": [
"go",
"docker.io/library/golang"
groupName: 'Go',
extends: [
'schedule:monthly',
],
matchDepNames: [
'go',
'docker.io/library/golang',
],
},
{
// Avoid updating patch releases of golang in go.mod
"enabled": "false",
"matchFiles": [
"go.mod",
enabled: false,
matchFileNames: [
'go.mod',
],
matchDepNames: [
'go',
],
"matchDepNames": [
"go"
matchDatasources: [
'golang-version',
],
"matchDatasources": [
"golang-version"
matchUpdateTypes: [
'patch',
],
"matchUpdateTypes": [
"patch"
matchBaseBranches: [
'master',
],
"matchBaseBranches": [
"master"
]
},
{
"matchDepNames": [
"quay.io/lvh-images/kernel-images",
matchDepNames: [
'quay.io/lvh-images/kernel-images',
],
"versioning": "regex:^((?<compatibility>[a-z0-9-]+)|((?<major>\\d+)\\.(?<minor>\\d+)))\\-(?<patch>\\d+)\\.(?<build>\\d+)(@(?<currentDigest>sha256:[a-f0-9]+))?$"
versioning: 'regex:^((?<compatibility>[a-z0-9-]+)|((?<major>\\d+)\\.(?<minor>\\d+)))\\-(?<patch>\\d+)\\.(?<build>\\d+)(@(?<currentDigest>sha256:[a-f0-9]+))?$',
},
{
"groupName": "all lvh-images main",
"groupSlug": "all-lvh-images-main",
"matchPackageNames": [
"quay.io/lvh-images/kernel-images",
groupName: 'all lvh-images main',
groupSlug: 'all-lvh-images-main',
matchPackageNames: [
'quay.io/lvh-images/kernel-images',
],
"matchUpdateTypes": [
"digest",
"patch",
"pin",
"pinDigest"
matchUpdateTypes: [
'digest',
'patch',
'pin',
'pinDigest',
],
},
],
"customManagers": [
customManagers: [
{
"customType": "regex",
"fileMatch": [
"^\\.github/workflows/[^/]+\\.ya?ml$",
customType: 'regex',
fileMatch: [
'^\\.github/workflows/[^/]+\\.ya?ml$',
],
// This regex manages version strings in GitHub actions workflow files,
// similar to the examples shown here:
// https://docs.renovatebot.com/modules/manager/regex/#advanced-capture
"matchStrings": [
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+version: (?<currentValue>.*)",
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+ ['\"]?(?<currentValue>[^'\"\\s]*)"
]
matchStrings: [
'# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+version: (?<currentValue>.*)',
'# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+ [\'"]?(?<currentValue>[^\'"\\s]*)',
],
},
]
],
}

0 comments on commit 1c2b98d

Please sign in to comment.