Skip to content

Instantly share code, notes, and snippets.

@Roxedus
Created March 14, 2024 12:16
Show Gist options
  • Save Roxedus/46a3f2791a75285c241f0c27b3d45e64 to your computer and use it in GitHub Desktop.
Save Roxedus/46a3f2791a75285c241f0c27b3d45e64 to your computer and use it in GitHub Desktop.
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
// "extends": [
// "config:base"
// ]
"enabledManagers": [
"custom.regex"
],
"packageRules": [
{
"matchDatasources": [
"github-tags"
],
"matchPackageNames": [
"bitwarden/clients"
],
"versionCompatibility": "^(?<compatibility>cli-v)(?<version>.*)$"
}
],
"customManagers": [
{
"customType": "regex",
"description": [
"Process calver versions from Containerfiles"
],
"fileMatch": [
".+Containerfile$"
],
"matchStrings": [
// # renovate: datasource=github-tags depName=bitwarden/clients type=calver
// BW_RELEASE=cli-v2024.2.0
"datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( type=calver)?\\n.+=(?<currentValue>\\S+)"
],
"datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}github-releases{{/if}}"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment