mirror of
https://github.com/mastodon/chart
synced 2025-05-18 04:53:21 +00:00
42 lines
1.5 KiB
JavaScript
42 lines
1.5 KiB
JavaScript
module.exports = {
|
|
branchPrefix: 'test-renovate/',
|
|
username: 'renovate-release',
|
|
gitAuthor: 'Renovate Bot <bot@renovateapp.com>',
|
|
platform: 'github',
|
|
includeForks: true,
|
|
dryRun: 'full',
|
|
repositories: ['jessebot/mastodon-helm-chart'],
|
|
extends: ['config:base'],
|
|
allowPostUpgradeCommandTemplating: true,
|
|
allowedPostUpgradeCommands: ['^.*'],
|
|
regexManagers: [
|
|
{
|
|
fileMatch: ['(^|/)Chart\\.yaml$'],
|
|
matchStrings: [
|
|
'#\\s?renovate: image=(?<depName>.*?)\\s?appVersion:\\s?\\"?(?<currentValue>[\\w+\\.\\-]*)',
|
|
],
|
|
datasourceTemplate: 'docker',
|
|
},
|
|
],
|
|
packageRules: [
|
|
{
|
|
matchManagers: ['helm-requirements', 'helm-values', 'regex'],
|
|
postUpgradeTasks: {
|
|
commands: [
|
|
`version=$(grep '^version:' {{{parentDir}}}/Chart.yaml | awk '{print $2}')
|
|
major=$(echo $version | cut -d. -f1)
|
|
minor=$(echo $version | cut -d. -f2)
|
|
patch=$(echo $version | cut -d. -f3)
|
|
minor=$(expr $minor + 1)
|
|
echo "Replacing $version with $major.$minor.$patch"
|
|
sed -i "s/^version:.*/version: $\{major\}.$\{minor\}.$\{patch\}/g" {{{parentDir}}}/Chart.yaml
|
|
cat {{{parentDir}}}/Chart.yaml
|
|
`,
|
|
],
|
|
},
|
|
fileFilters: ['**/Chart.yaml'],
|
|
executionMode: 'branch',
|
|
},
|
|
],
|
|
};
|