mirror of
https://github.com/mastodon/chart
synced 2025-05-18 13:03:21 +00:00
Merge pull request #11 from jessebot/update-renovate
update renovate to use config.js and bump helm chart version going forward
This commit is contained in:
commit
1918a5eaf5
41
.github/config.js
vendored
Normal file
41
.github/config.js
vendored
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
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',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
14
.github/renovate.json
vendored
14
.github/renovate.json
vendored
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"repositories": [
|
|
||||||
"jessebot/mastodon-helm-chart"
|
|
||||||
],
|
|
||||||
"regexManagers": [
|
|
||||||
{
|
|
||||||
"datasourceTemplate": "docker",
|
|
||||||
"fileMatch": ["(^|/)Chart\\.yaml$"],
|
|
||||||
"matchStrings": [
|
|
||||||
"#\\s?renovate: image=(?<depName>.*?)\\s?appVersion:\\s?\\\"?(?<currentValue>[\\w+\\.\\-]*)\""
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
2
.github/workflows/renovate.yaml
vendored
2
.github/workflows/renovate.yaml
vendored
|
@ -14,4 +14,4 @@ jobs:
|
||||||
uses: renovatebot/github-action@v39.0.1
|
uses: renovatebot/github-action@v39.0.1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||||
configurationFile: .github/renovate.json
|
configurationFile: .github/config.js
|
||||||
|
|
Loading…
Reference in New Issue
Block a user