2022-05-11 09:04:06 +00:00
|
|
|
module.exports = {
|
|
|
|
dryRun: false,
|
2023-01-17 23:06:10 +00:00
|
|
|
username: "truecharts-admin",
|
|
|
|
gitAuthor: "truecharts-admin <bot@truecharts.org>",
|
2022-05-11 09:04:06 +00:00
|
|
|
onboarding: false,
|
2022-07-22 18:23:01 +00:00
|
|
|
platform: "github",
|
|
|
|
repositories: ["truecharts/charts"],
|
2023-11-18 13:55:04 +00:00
|
|
|
allowPostUpgradeCommandTemplating: true,
|
|
|
|
allowedPostUpgradeCommands: ["^.*"],
|
|
|
|
regexManagers: [
|
2022-05-11 09:04:06 +00:00
|
|
|
{
|
2023-11-18 13:55:04 +00:00
|
|
|
fileMatch: ["(^|/)Chart\\.yaml$"],
|
|
|
|
matchStrings: [
|
|
|
|
'#\\s?renovate: image=(?<depName>.*?)\\s?appVersion:\\s?\\"?(?<currentValue>[\\w+\\.\\-]*)',
|
2022-05-11 09:04:06 +00:00
|
|
|
],
|
2023-11-18 13:55:04 +00:00
|
|
|
datasourceTemplate: "docker",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
packageRules: [
|
|
|
|
{
|
|
|
|
matchManagers: ["helm-requirements", "helm-values", "regex"],
|
|
|
|
datasources: ["docker"],
|
|
|
|
matchUpdateTypes: ["major"],
|
|
|
|
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)
|
|
|
|
major=$(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",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
matchManagers: ["helm-requirements", "helm-values", "regex"],
|
|
|
|
datasources: ["docker"],
|
|
|
|
matchUpdateTypes: ["minor"],
|
|
|
|
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",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
matchManagers: ["helm-requirements", "helm-values", "regex"],
|
|
|
|
datasources: ["docker"],
|
|
|
|
matchUpdateTypes: ["patch", "digest", "pin"],
|
|
|
|
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)
|
|
|
|
patch=$(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",
|
2022-05-11 09:04:06 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|