mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
checkpoint
This commit is contained in:
15
.github/workflows/renovate.yml
vendored
Normal file
15
.github/workflows/renovate.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
name: Renovate
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 */6 * * *'
|
||||||
|
jobs:
|
||||||
|
renovate:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Self-hosted Renovate
|
||||||
|
uses: renovatebot/github-action@v40.2.2
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
/secret.*.yaml
|
/secret.*.yaml
|
||||||
/data/
|
/data/
|
||||||
|
/.envrc
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
@@ -1,50 +1,22 @@
|
|||||||
// .github/renovate.json5 (or renovate.json)
|
|
||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"autodiscover": false,
|
"extends": [
|
||||||
|
"config:base"
|
||||||
|
],
|
||||||
|
"helm-values": {
|
||||||
|
"managerFilePatterns": ["^charts/.*/values\\.yaml$"]
|
||||||
|
},
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
{
|
{
|
||||||
"matchDatasources": ["docker"],
|
"matchUpdateTypes": ["major"],
|
||||||
"extractVersion": "^(?<version>.*)$",
|
"groupName": null,
|
||||||
"versioning": "semver",
|
"pinDigests": true
|
||||||
"groupName": "All Docker Images",
|
|
||||||
"pinDigests": true,
|
|
||||||
},
|
},
|
||||||
],
|
|
||||||
"helm": {
|
|
||||||
"fileMatch": ["charts/**/values.yaml"],
|
|
||||||
// You generally don't need to list public registries here.
|
|
||||||
// Only add specific entries for *private* registries that require explicit authentication.
|
|
||||||
// Renovate is smart enough to infer common public ones.
|
|
||||||
"registryUrls": {
|
|
||||||
// "my.private.registry.com": "https://my.private.registry.com/v2/" // Example for a private registry
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"regexManagers": [
|
|
||||||
{
|
{
|
||||||
"fileMatch": ["(^|/)charts/.*values\\.yaml$"],
|
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
|
||||||
"matchStrings": [
|
"groupName": "non-major dependencies",
|
||||||
// Primary image:
|
"groupSlug": "non-major",
|
||||||
// This regex tries to capture the full image name, including the registry if specified.
|
"pinDigests": true
|
||||||
// It's designed to be flexible.
|
|
||||||
"repository:\\s*(?<depName>.*?)\\n\\s*tag:\\s*(?<currentValue>.*?)\\n",
|
|
||||||
|
|
||||||
// Nested images (e.g., piper.image, whisper.image):
|
|
||||||
// This regex accounts for a preceding key and potential 'image:' sub-key.
|
|
||||||
"^(?!\\s*#)[^\\s]*?:(?:\\n\\s*image:)?\\n\\s*repository:\\s*(?<depName>.*?)\\n\\s*tag:\\s*(?<currentValue>.*?)\\n"
|
|
||||||
],
|
|
||||||
"datasourceTemplate": "docker",
|
|
||||||
// Important: Add a "depNameTemplate" to ensure capture group 1 (depName) is used
|
|
||||||
// which should contain the full path including registry
|
|
||||||
"depNameTemplate": "{{depName}}"
|
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
// ... rest of your configuration
|
|
||||||
"ignorePaths": ["**/node_modules/**", "**/vendor/**"],
|
|
||||||
"timezone": "Europe/Oslo",
|
|
||||||
"schedule": ["at any time"],
|
|
||||||
"commitMessageTopic": "{{depName}} Docker image",
|
|
||||||
"prConcurrentLimit": 5,
|
|
||||||
"dependencyDashboard": true,
|
|
||||||
"dependencyDashboardAutoclose": true
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user