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" + } + ] +}