feat: migrate existing configs #1

Merged
t.behrendt merged 10 commits from feat-migrate-existing-configs into main 2025-10-08 18:46:12 +02:00
8 changed files with 126 additions and 2 deletions
Showing only changes of commit a1ef75fcea - Show all commits

7
.editorconfig Normal file
View File

@@ -0,0 +1,7 @@
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

26
.gitea/workflows/ci.yaml Normal file
View File

@@ -0,0 +1,26 @@
name: CI
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Validate "action.json"
uses: https://gitea.t000-n.de/t.behrendt/validate-json-by-json-schema-action@0.1.0
with:
json-file: "./action.json"
- name: Validate "k8s.json"
uses: https://gitea.t000-n.de/t.behrendt/validate-json-by-json-schema-action@0.1.0
with:
json-file: "./k8s.json"
- name: Validate "helm.json"
uses: https://gitea.t000-n.de/t.behrendt/validate-json-by-json-schema-action@0.1.0
with:
json-file: "./helm.json"
- name: Validate "common.json"
uses: https://gitea.t000-n.de/t.behrendt/validate-json-by-json-schema-action@0.1.0
with:
json-file: "./common.json"

View File

@@ -1,3 +1,30 @@
# renovate-configs # Renovate configs
Reusable renovate config for T00N Reusable renovate configs, covering a number of use cases and opinionated "best practices".
Usage:
Your renovate.json
```json
{
"extends": [
"local>t.behrendt/renovate-configs:helm#1.0.0",
"local>t.behrendt/renovate-configs:k8s#1.0.0"
]
}
```
## Common
Sets defaults such as the dependency dashboard.
## k8s
Keeps OCI image references for k8s deployments up-to-date. Requires the k8s manifests to be in the "./k8s" directory.
## Helm
Keeps the chart itself up-to-date as well as image references in chart values.
Requires values to be in the "./values" directory. Supports both yaml and yaml.gotmpl for secrets.
## Action

14
action.json Normal file
View File

@@ -0,0 +1,14 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"matchManagers": [
"github-actions"
],
"addLabels": [
"deps",
"action"
]
}
]
}

4
common.json Normal file
View File

@@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"dependencyDashboard": true
}

8
docker-compose.json Normal file
View File

@@ -0,0 +1,8 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"docker-compose": {
"digest": {
"enabled": true
}
}
}

25
helm.json Normal file
View File

@@ -0,0 +1,25 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"helm-values": {
"fileMatch": [
"(^|/)values/.*\\.ya?ml$",
"(^|/)values/.*\\.ya?ml\\.gotmpl$"
]
},
"packageRules": [
{
"matchManagers": [
"helm-values"
],
"versioning": "docker",
"separateMinorPatch": true
}
],
"helmfile": {
"enabled": true,
"addLabels": [
"deps",
"helm"
]
}
}

13
k8s.json Normal file
View File

@@ -0,0 +1,13 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"kubernetes": {
"enabled": true,
"fileMatch": [
"^k8s/*\\.json$"
],
"labels": [
"deps",
"k8s"
]
}
}