Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(config): migrate renovate config #991

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
350 changes: 173 additions & 177 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,225 +1,221 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
":gitSignOff",
"helpers:pinGitHubActionDigests"
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'config:recommended',
':gitSignOff',
'helpers:pinGitHubActionDigests',
],
"includePaths": [
".github/workflows/**",
"Dockerfile",
"Dockerfile.builder",
"go.mod",
"go.sum",
"WORKSPACE",
"ENVOY_VERSION"
includePaths: [
'.github/workflows/**',
'Dockerfile',
'Dockerfile.builder',
'go.mod',
'go.sum',
'WORKSPACE',
'ENVOY_VERSION',
],
"pinDigests": true,
"ignorePresets": [":prHourlyLimit2"],
"separateMajorMinor": false,
"separateMultipleMajor": false,
"separateMinorPatch": false,
"pruneStaleBranches": true,
"baseBranches": [
"main",
"v1.29",
pinDigests: true,
ignorePresets: [
':prHourlyLimit2',
],
"labels": [
"kind/enhancement",
"release-note/misc"
separateMajorMinor: false,
separateMultipleMajor: false,
separateMinorPatch: false,
pruneStaleBranches: true,
baseBranches: [
'main',
'v1.29',
],
"schedule": [
"on monday"
labels: [
'kind/enhancement',
'release-note/misc',
],
schedule: [
'on monday',
],
postUpdateOptions: [
"gomodTidy"
'gomodTidy',
],
"packageRules": [
packageRules: [
{
"groupName": "all go dependencies main",
"groupSlug": "all-go-deps-main",
"matchFiles": [
"go.mod",
"go.sum"
],
"postUpdateOptions": [
// update source import paths on major updates
"gomodUpdateImportPaths"
],
"matchUpdateTypes": [
"major",
"minor",
"digest",
"patch",
"pin",
"pinDigest"
groupName: 'all go dependencies main',
groupSlug: 'all-go-deps-main',
matchFileNames: [
'go.mod',
'go.sum',
],
postUpdateOptions: [
'gomodUpdateImportPaths',
],
matchUpdateTypes: [
'major',
'minor',
'digest',
'patch',
'pin',
'pinDigest',
],
matchBaseBranches: [
"main"
]
'main',
],
},
{
"groupName": "all go dependencies stable",
"groupSlug": "all-go-deps-stable",
"matchFiles": [
"go.mod",
"go.sum"
],
"matchUpdateTypes": [
"minor",
"digest",
"patch",
"pin",
"pinDigest"
groupName: 'all go dependencies stable',
groupSlug: 'all-go-deps-stable',
matchFileNames: [
'go.mod',
'go.sum',
],
matchUpdateTypes: [
'minor',
'digest',
'patch',
'pin',
'pinDigest',
],
matchBaseBranches: [
"v1.29"
]
'v1.29',
],
},
{
"groupName": "all github action dependencies",
"groupSlug": "all-github-action",
"matchFileNames": [
".github/workflows/**"
],
"matchUpdateTypes": [
"major",
"minor",
"digest",
"patch",
"pin",
"pinDigest"
groupName: 'all github action dependencies',
groupSlug: 'all-github-action',
matchFileNames: [
'.github/workflows/**',
],
matchUpdateTypes: [
'major',
'minor',
'digest',
'patch',
'pin',
'pinDigest',
],
},
{
"matchFileNames": [
"Dockerfile",
matchFileNames: [
'Dockerfile',
],
matchPackageNames: [
'docker.io/library/ubuntu',
],
"matchPackageNames": [
"docker.io/library/ubuntu"
allowedVersions: '22.04',
matchBaseBranches: [
'main',
'v1.29',
],
"allowedVersions": "22.04",
"matchBaseBranches": [
"main",
"v1.29",
]
},
{
// Do not allow any updates/pinning of image quay.io/cilium/cilium-envoy-builder
"enabled": false,
"matchFileNames": [
"Dockerfile",
],
"matchPackageNames": [
"quay.io/cilium/cilium-envoy-builder"
]
enabled: false,
matchFileNames: [
'Dockerfile',
],
matchPackageNames: [
'quay.io/cilium/cilium-envoy-builder',
],
},
{
"matchFileNames": [
"Dockerfile.builder",
matchFileNames: [
'Dockerfile.builder',
],
matchPackageNames: [
'docker.io/library/ubuntu',
],
"matchPackageNames": [
"docker.io/library/ubuntu"
allowedVersions: '22.04',
matchBaseBranches: [
'main',
'v1.29',
],
"allowedVersions": "22.04",
"matchBaseBranches": [
"main",
"v1.29",
]
},
{
"matchFileNames": [
"Dockerfile.builder",
matchFileNames: [
'Dockerfile.builder',
],
matchPackageNames: [
'go',
],
"matchPackageNames": [
"go"
allowedVersions: '<=1.22',
matchBaseBranches: [
'main',
'v1.29',
],
"allowedVersions": "<=1.22",
"matchBaseBranches": [
"main",
"v1.29",
]
},
{
"groupName": "envoy 1.29.x",
"matchDepNames": [
"envoyproxy/envoy"
],
"allowedVersions": "<=1.29",
"matchBaseBranches": [
"v1.29"
]
groupName: 'envoy 1.29.x',
matchDepNames: [
'envoyproxy/envoy',
],
allowedVersions: '<=1.29',
matchBaseBranches: [
'v1.29',
],
},
{
"groupName": "envoy 1.30.x",
"matchDepNames": [
"envoyproxy/envoy"
],
"allowedVersions": "<=1.30",
"matchBaseBranches": [
"main"
]
groupName: 'envoy 1.30.x',
matchDepNames: [
'envoyproxy/envoy',
],
allowedVersions: '<=1.30',
matchBaseBranches: [
'main',
],
},
{
"groupName": "go 1.22.x",
"matchFileNames": [
".github/workflows/**",
],
"matchPackageNames": [
"go"
],
"allowedVersions": "<=1.22",
"matchBaseBranches": [
"main",
"v1.29",
]
groupName: 'go 1.22.x',
matchFileNames: [
'.github/workflows/**',
],
matchPackageNames: [
'go',
],
allowedVersions: '<=1.22',
matchBaseBranches: [
'main',
'v1.29',
],
},
],
"regexManagers": [
customManagers: [
{
"fileMatch": [
"^WORKSPACE$",
],
// These regexes manage version and digest strings in shell scripts,
// similar to the examples shown here:
// https://docs.renovatebot.com/modules/manager/regex/#advanced-capture
"matchStrings": [
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+_VERSION = \"(?<currentValue>.*)\"",
// The digestVersion in this regex is required for Renovate to be able
// to match the digest to the pinned version. It will not work without it.
// Note that for GitHub release artifact digests, you likely want to use
// github-release-attachments as the datasource here.
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?) digestVersion=(?<currentValue>.*)\\s+.+_SHA = \"(?<currentDigest>.*)\""
]
customType: 'regex',
fileMatch: [
'^WORKSPACE$',
],
matchStrings: [
'# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+_VERSION = "(?<currentValue>.*)"',
'# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?) digestVersion=(?<currentValue>.*)\\s+.+_SHA = "(?<currentDigest>.*)"',
],
},
{
"fileMatch": [
"^\\.github/workflows/[^/]+\\.ya?ml$"
],
// These regexes manage version strings in env blocks in GH actions,
// 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+.+_VERSION: (?<currentValue>.*)",
]
customType: 'regex',
fileMatch: [
'^\\.github/workflows/[^/]+\\.ya?ml$',
],
matchStrings: [
'# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+-version: (?<currentValue>.*)',
'# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+_VERSION: (?<currentValue>.*)',
],
},
{
"fileMatch": [
"^ENVOY_VERSION$"
],
"datasourceTemplate": "github-releases",
"depNameTemplate": "envoyproxy/envoy",
"extractVersionTemplate": "^v?(?<version>.+)$",
"matchStrings": [
"envoy-(?<currentValue>.*)"
]
customType: 'regex',
fileMatch: [
'^ENVOY_VERSION$',
],
datasourceTemplate: 'github-releases',
depNameTemplate: 'envoyproxy/envoy',
extractVersionTemplate: '^v?(?<version>.+)$',
matchStrings: [
'envoy-(?<currentValue>.*)',
],
},
{
"fileMatch": ["^Dockerfile.builder$"],
"matchStrings": [
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\sENV .*?_VERSION=(?<currentValue>.*)\\s"
]
}
]
customType: 'regex',
fileMatch: [
'^Dockerfile.builder$',
],
matchStrings: [
'# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\sENV .*?_VERSION=(?<currentValue>.*)\\s',
],
},
],
}
Loading