Skip to content

Commit

Permalink
chore: init
Browse files Browse the repository at this point in the history
  • Loading branch information
robgordon89 committed Nov 12, 2024
0 parents commit 281db2a
Show file tree
Hide file tree
Showing 4 changed files with 209 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# renovate-config
Collection of renovate configs that we use


## Usage

Flux Cluster:
```json
{
"extends": ["github>mailergroup/renovate-config:flux"]
}
```
90 changes: 90 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"extends":[
"github>mailergroup/renovate-config:base"
],
"enabledManagers":[
"regex",
"docker-compose",
"helmv3",
"github-actions"
],
"regexManagers":[
{
"fileMatch":["(^|\/|.)Dockerfile$"],
"matchStrings":[
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( extractVersion=(?<extractVersion>.+?))?( versioning=(?<versioning>.*?))?\n.*?_VERSION=[\"]?(?<currentValue>.*[^\"\\n])"
],
"versioningTemplate":"{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
},
{
"fileMatch":["^Makefile$"],
"matchStrings":[
"OCTOPUS_IMAGE := (?:.*?\/mailergroup\/)(?<depName>.*?):(?<currentValue>.*?[a-f0-9].*)"
],
"datasourceTemplate":"docker"
},
{
"fileMatch":["(^|\/|.)Dockerfile$"],
"matchStrings":[
"FROM (?:.*?\/mailergroup\/)(?<depName>[a-z0-9.\/-]+)(?::(?<currentValue>[a-z0-9.-]+))?"
],
"datasourceTemplate":"docker"
},
{
"fileMatch":["(?:helm|helmchart)/values.(?:dev|prod|staging|production).(?:yaml|yml)"],
"matchStrings":[
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)?\n.*?image: .*?:(?<currentValue>.*)"
],
"versioningTemplate":"{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
}
],
"packageRules":[
{
"matchPackagePatterns":[
"octopus",
"swiss-army-knife"
],
"registryUrls":["https://europe-docker.pkg.dev/mailergroup/"]
},
{
"matchPackagePatterns":["europe-docker.pkg.dev/mailerlite-v2/landings/landings"],
"registryUrls":["https://europe-docker.pkg.dev/mailerlite-v2/"]
},
{
"matchPackagePatterns":["europe-docker.pkg.dev/mailergroup/groot/groot"],
"registryUrls":["https://europe-docker.pkg.dev/mailergroup/"]
},
{
"matchDatasources":["docker"],
"addLabels":["docker"],
"reviewers":["team:sre"]
},
{
"matchDatasources":["github-actions"],
"addLabels":["github"],
"reviewers":["team:sre"]
},
{
"matchPackagePatterns":["elasticsearch"],
"matchUpdateTypes":["patch","minor"]
},
{
"matchPackagePatterns":["elasticsearch"],
"matchUpdateTypes":["major"],
"enabled":false
},
{
"matchPackagePatterns":["groot"],
"addLabels":["groot"]
},
{
"matchDatasources":["helm"],
"addLabels":["helm"],
"reviewers":["team:sre"]
},
{
"matchDatasources":["github-releases"],
"reviewers":["team:sre"]
}
]
}
19 changes: 19 additions & 0 deletions base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"semanticCommits": "enabled",
"dependencyDashboard": true,
"suppressNotifications": ["prIgnoreNotification"],
"rebaseWhen": "conflicted",
"labels": ["renovate"],
"dockerfile":{
"fileMatch":[
"^Makefile$"
]
},
"helm-values":{
"fileMatch":[
"clusters/.+/helm-release\\.yaml$",
"base/.+/helm-release\\.yaml$",
"components/.+/helm-release\\.yaml$"
]
}
}
88 changes: 88 additions & 0 deletions flux.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"extends":[
"github>mailergroup/renovate-config:base"
],
"enabledManagers":[
"regex",
"github-actions",
"kubernetes",
"flux"
],
"flux": {
"fileMatch": [
"mailer.+\\.ya?ml$",
"clusters/.+\\.ya?ml$",
"base/.+\\.ya?ml$"
]
},
"regexManagers":[
{
"fileMatch":[
"mailer.+\\.yaml$",
"clusters/.+\\.yaml$",
"base/.+\\.yaml$"
],
"matchStrings":[
"registryUrl=(?<registryUrl>.*?) chart=(?<depName>.*)\n *version: (?<currentValue>.*)"
],
"datasourceTemplate":"helm"
},
{
"fileMatch":[
"mailer.+\\.yaml$",
"clusters/.+\\.yaml$",
"base/.+\\.yaml$"
],
"matchStrings":[
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)?(?:\n.*?)(?:\n.*?)?tag: .*?(?<currentValue>.*)"
],
"datasourceTemplate":"docker"
},
{
"fileMatch":[
"mailer.+\\.yaml$",
"clusters/.+\\.yaml$",
"base/.+\\.yaml$"
],
"matchStrings":[
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)?\n.*?image: .*?:(?<currentValue>.*)"
],
"datasourceTemplate":"docker"
},
{
"fileMatch":[
"^.pre-commit-config.yaml$"
],
"matchStrings":[
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)?\n.*?rev: .*?(?<currentValue>.*)"
],
"datasourceTemplate":"github-releases"
}
],
"packageRules":[
{
"matchDatasources":[
"helm"
],
"separateMinorPatch":true,
"ignoreDeprecated":true,
"additionalBranchPrefix":"{{baseDir}}-",
"addLabels":["helm", "{{#if (containsString packageFileDir 'clusters/staging')}}staging{{/if}}", "{{#if (containsString packageFileDir 'clusters/dev')}}dev{{/if}}", "{{#if (containsString packageFileDir 'clusters/prod')}}prod{{/if}}", "{{#if (containsString packageFileDir 'base/')}}base{{/if}}"]
},
{
"matchDatasources":[
"docker"
],
"separateMinorPatch":true,
"ignoreDeprecated":true,
"additionalBranchPrefix":"{{baseDir}}-",
"addLabels":["docker", "{{#if (containsString packageFileDir 'clusters/staging')}}staging{{/if}}", "{{#if (containsString packageFileDir 'clusters/dev')}}dev{{/if}}", "{{#if (containsString packageFileDir 'clusters/prod')}}prod{{/if}}", "{{#if (containsString packageFileDir 'base/')}}base{{/if}}"]
},
{
"matchPackagePatterns":[
"^victoriametrics"
],
"additionalBranchPrefix":"{{baseDir}}-"
}
]
}

0 comments on commit 281db2a

Please sign in to comment.