justusbunsi
52153021e3
`go-gitea/gitea` is no workflow dependency and therefore should not be grouped as such. It got automatically matched due to `custom.regex` manager in that rule. Since we now have image dependencies in our `values.yaml`, PR builds will fail when these changes are not represented in `README.md`. Using a [postUpgradeTask](https://docs.renovatebot.com/configuration-options/#postupgradetasks) allows customized Renovate behavior. Signed-off-by: justusbunsi <sk.bunsenbrenner@gmail.com> Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/738 Co-authored-by: justusbunsi <sk.bunsenbrenner@gmail.com> Co-committed-by: justusbunsi <sk.bunsenbrenner@gmail.com>
95 lines
2.5 KiB
Plaintext
95 lines
2.5 KiB
Plaintext
{
|
|
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
|
|
extends: [
|
|
'gitea>gitea/renovate-config',
|
|
':automergeMinor',
|
|
'schedule:automergeDaily',
|
|
'schedule:weekends',
|
|
],
|
|
labels: [
|
|
'kind/dependency',
|
|
],
|
|
automergeStrategy: 'squash',
|
|
customManagers: [
|
|
{
|
|
description: 'Gitea-version of https://docs.renovatebot.com/presets-regexManagers/#regexmanagersgithubactionsversions',
|
|
customType: 'regex',
|
|
fileMatch: [
|
|
'.gitea/workflows/.+\\.ya?ml$',
|
|
],
|
|
matchStrings: [
|
|
'# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (?:lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[a-z-0-9]+?))?\\s+[A-Za-z0-9_]+?_VERSION\\s*:\\s*["\']?(?<currentValue>.+?)["\']?\\s',
|
|
],
|
|
},
|
|
{
|
|
description: 'Detect helm-unittest yaml schema file',
|
|
customType: 'regex',
|
|
fileMatch: ['.vscode/settings\\.json$'],
|
|
matchStrings: [
|
|
'https:\\/\\/raw\\.githubusercontent\\.com\\/(?<depName>[^\\s]+?)\\/(?<currentValue>v[0-9.]+?)\\/schema\\/helm-testsuite\\.json',
|
|
],
|
|
datasourceTemplate: 'github-releases',
|
|
},
|
|
{
|
|
'description': 'Automatically detect new Gitea releases',
|
|
'customType': 'regex',
|
|
'fileMatch': ['(^|/)Chart\\.yaml$'],
|
|
'matchStrings': [
|
|
'# renovate datasource=(?<datasource>\\S+) depName=(?<depName>\\S+) extractVersion=(?<extractVersion>\\S+)\\nappVersion:\\s?(?<currentValue>\\S+)\\n',
|
|
],
|
|
},
|
|
],
|
|
packageRules: [
|
|
{
|
|
groupName: 'subcharts (minor & patch)',
|
|
matchManagers: [
|
|
'helmv3',
|
|
],
|
|
matchUpdateTypes: [
|
|
'minor',
|
|
'patch',
|
|
'digest',
|
|
],
|
|
},
|
|
{
|
|
groupName: 'workflow dependencies (minor & patch)',
|
|
matchManagers: [
|
|
'github-actions',
|
|
'npm',
|
|
'custom.regex',
|
|
],
|
|
matchUpdateTypes: [
|
|
'minor',
|
|
'patch',
|
|
'digest',
|
|
],
|
|
matchFileNames: [
|
|
'!Chart.yaml',
|
|
],
|
|
},
|
|
{
|
|
description: 'Update README.md on changes in values.yaml',
|
|
matchManagers: [
|
|
'helm-values',
|
|
],
|
|
postUpgradeTasks: {
|
|
commands: [
|
|
'install-tool node',
|
|
'make readme',
|
|
],
|
|
fileFilters: [
|
|
'README.md',
|
|
],
|
|
executionMode: 'update',
|
|
},
|
|
},
|
|
{
|
|
description: 'Override changelog url for Helm image, to have release notes in our PRs',
|
|
matchDepNames: [
|
|
'alpine/helm',
|
|
],
|
|
changelogUrl: 'https://github.com/helm/helm',
|
|
},
|
|
],
|
|
}
|