feat: migrate existing configs #1
7
.editorconfig
Normal file
7
.editorconfig
Normal 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
26
.gitea/workflows/ci.yaml
Normal 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"
|
||||
31
README.md
31
README.md
@@ -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
14
action.json
Normal 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
4
common.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"dependencyDashboard": true
|
||||
}
|
||||
8
docker-compose.json
Normal file
8
docker-compose.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"docker-compose": {
|
||||
"digest": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
}
|
||||
25
helm.json
Normal file
25
helm.json
Normal 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"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user