From eb0186a5b8a54dacc013001dbe5fabb5bd244d6c Mon Sep 17 00:00:00 2001 From: Emma Thorpe Date: Thu, 11 Jun 2026 16:07:10 +0100 Subject: [PATCH] build: add Renovate configuration Track the Dockerfile base image, the actions used in the Gitea workflow, and versioned front-end dependencies referenced in HTML (via renovate comment annotations or jsDelivr/unpkg npm URLs). Co-Authored-By: Claude Opus 4.8 (1M context) --- renovate.json | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..f0af024 --- /dev/null +++ b/renovate.json @@ -0,0 +1,39 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended", + ":dependencyDashboard", + ":semanticCommits" + ], + "labels": ["renovate"], + "github-actions": { + "fileMatch": ["^\\.gitea/workflows/[^/]+\\.ya?ml$"] + }, + "packageRules": [ + { + "description": "Group nginx base image updates", + "matchManagers": ["dockerfile"], + "groupName": "docker base image" + } + ], + "customManagers": [ + { + "customType": "regex", + "description": "Update HTML dependencies annotated with a renovate comment, e.g. before the versioned URL", + "fileMatch": ["\\.html$"], + "matchStrings": [ + "datasource=(?\\S+) depName=(?\\S+)( versioning=(?\\S+))?[\\s\\S]*?(?v?\\d+\\.\\d+\\.\\d+[\\w.-]*)" + ] + }, + { + "customType": "regex", + "description": "Auto-detect versioned jsDelivr / unpkg npm assets in HTML", + "fileMatch": ["\\.html$"], + "matchStrings": [ + "https://cdn\\.jsdelivr\\.net/npm/(?@?[^@/]+(?:/[^@/]+)?)@(?\\d[^/\"']+)", + "https://unpkg\\.com/(?@?[^@/]+(?:/[^@/]+)?)@(?\\d[^/\"']+)" + ], + "datasourceTemplate": "npm" + } + ] +}