Skip to content

Commit

Permalink
chore(config): migrate config .github/renovate.json5
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and sayboras committed Oct 29, 2024
1 parent eff0f81 commit 3dc90ef
Showing 1 changed file with 173 additions and 177 deletions.
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',
],
},
],
}

0 comments on commit 3dc90ef

Please sign in to comment.