From a1ef75fcea93dfaf9249d02a43299fcb8e3af930 Mon Sep 17 00:00:00 2001 From: "t.behrendt" Date: Wed, 8 Oct 2025 15:36:27 +0200 Subject: [PATCH] sync --- .editorconfig | 7 +++++++ .gitea/workflows/ci.yaml | 26 ++++++++++++++++++++++++++ README.md | 31 +++++++++++++++++++++++++++++-- action.json | 14 ++++++++++++++ common.json | 4 ++++ docker-compose.json | 8 ++++++++ helm.json | 25 +++++++++++++++++++++++++ k8s.json | 13 +++++++++++++ 8 files changed, 126 insertions(+), 2 deletions(-) create mode 100644 .editorconfig create mode 100644 .gitea/workflows/ci.yaml create mode 100644 action.json create mode 100644 common.json create mode 100644 docker-compose.json create mode 100644 helm.json create mode 100644 k8s.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..b6330b2 --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..0ea72f1 --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -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" diff --git a/README.md b/README.md index a187c71..034697b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,30 @@ -# renovate-configs +# Renovate configs -Reusable renovate config for T00N \ No newline at end of file +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 diff --git a/action.json b/action.json new file mode 100644 index 0000000..4c6b5f7 --- /dev/null +++ b/action.json @@ -0,0 +1,14 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "packageRules": [ + { + "matchManagers": [ + "github-actions" + ], + "addLabels": [ + "deps", + "action" + ] + } + ] +} diff --git a/common.json b/common.json new file mode 100644 index 0000000..02ae055 --- /dev/null +++ b/common.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "dependencyDashboard": true +} diff --git a/docker-compose.json b/docker-compose.json new file mode 100644 index 0000000..11c5bbe --- /dev/null +++ b/docker-compose.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "docker-compose": { + "digest": { + "enabled": true + } + } +} diff --git a/helm.json b/helm.json new file mode 100644 index 0000000..62e0e9c --- /dev/null +++ b/helm.json @@ -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" + ] + } +} diff --git a/k8s.json b/k8s.json new file mode 100644 index 0000000..d0694c7 --- /dev/null +++ b/k8s.json @@ -0,0 +1,13 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "kubernetes": { + "enabled": true, + "fileMatch": [ + "^k8s/*\\.json$" + ], + "labels": [ + "deps", + "k8s" + ] + } +}