diff --git a/.renovate/config.yaml b/.renovate/config.yaml new file mode 100644 index 00000000..0ad0abf8 --- /dev/null +++ b/.renovate/config.yaml @@ -0,0 +1,82 @@ +# SPDX-FileCopyrightText: 2024 Bundesministerium des Innern und für Heimat, PG ZenDiS "Projektgruppe für Aufbau ZenDiS" +# SPDX-License-Identifier: Apache-2.0 +--- +# Platform type of repository +platform: "gitlab" + +# Enable oboarding merge request +onboarding: false + +# If set to true: keep repository data between runs instead of deleting the data +persistRepoData: true + +# Controls Renovate's behavior regarding repository config files such as renovate.json +requireConfig: "ignored" + +# List of Repositories +# See: https://docs.renovatebot.com/configuration-options/ +repositories: + - repository: "" + # Prefix to use for all branch names created by renovate bot (default: "renovate/") + branchPrefix: "renovate/" + # Lowercase merge request and commit titles ("never" = leave titles untouched ) + commitMessageLowerCase: "never" + # Commit scope to use if Semantic Commits are enabled (fix()...) + semanticCommitScope: "ci" + # Commit type to use if Semantic Commits are enabled (default: "chore") + semanticCommitType: "chore" + # Include package files only within these defined paths + includePaths: + - "helmfile/environments/default/images.yaml" + - "helmfile/apps/**" + customManagers: + - customType: "regex" + fileMatch: + - "helmfile/environments/default/images.yaml" + datasourceTemplate: "docker" + matchStrings: + # yamllint disable rule:quoted-strings + - '#\srenovate:\s[\s\S]*?registryUrl\=(?.*?)\s[\s\S]*?dependencyType\=(?.*?)\s[\s\S]*?repository:\s\"(?.*?)\"\s[\s\S]*?tag:\s\"(?.*?)(?:(?:@|\\\s*@)(?sha256:[a-f0-9]+)|\")' + # yamllint enable rule:quoted-strings + - customType: "regex" + fileMatch: + - "^helmfile\/apps" + - "helmfile/environments/default/charts.yaml" + matchStrings: + # yamllint disable rule:quoted-strings + - '\#\srenovate:\s[\s\S]*?registryUrl\=(?.*?)\s[\s\S]*?packageName\=(?.*?)\s[\s\S]*?dataSource\=(?.*?)\s[\s\S]*?dependencyType\=(?.*?)\s[\s\S]*?name:\s\"(?.*?)\"\s[\s\S]*?version\:\s\"(?.*?)\"' + # yamllint enable rule:quoted-strings + # Rules for matching packages + packageRules: + - matchDatasources: "docker" + matchDepTypes: + - "external" + groupName: "external-dependencies" + - matchDatasources: "docker" + matchDepTypes: + - "supplier" + groupName: "supplier-dependencies" + - matchDatasources: "docker" + matchDepTypes: + - "platform" + groupName: "platform-dependencies" + - matchDatasources: "helm" + matchDepTypes: + - "external" + groupName: "external-dependencies" + - matchDatasources: "helm" + matchDepTypes: + - "supplier" + groupName: "supplier-dependencies" + - matchDatasources: "helm" + matchDepTypes: + - "platform" + groupName: "platform-dependencies" + # Add merge request labels + labels: + - "renovate" + - "dependencies" + # Enable custom regex manager only + enabledManagers: + - "custom.regex" +...