customManager for replacing latest tags.

This commit is contained in:
2025-10-09 08:25:59 -04:00
parent a864264992
commit 9a047495de
+14 -8
View File
@@ -48,6 +48,18 @@
"dependencyDashboardApproval": true "dependencyDashboardApproval": true
}, },
"versioning": "docker", "versioning": "docker",
"customManagers": [
{
"customType": "regex",
"fileMatch": ["docker-compose.yml"],
"matchStrings": [
"image: (?<depName>[^:]+):(?<currentValue>latest)"
],
"datasourceTemplate": "docker",
"versioningTemplate": "docker",
"currentValueTemplate": "latest"
}
],
"packageRules": [ "packageRules": [
{ {
"description": "Alpine-based images only update to Alpine-based versions", "description": "Alpine-based images only update to Alpine-based versions",
@@ -58,15 +70,9 @@
"allowedVersions": "/alpine/i" "allowedVersions": "/alpine/i"
}, },
{ {
"description": "Replace :latest with semver tag + digest", "description": "Replace :stable with digest only",
"matchDatasources": ["docker"],
"matchCurrentValue": "latest",
"versioning": "docker",
"pinDigests": true
},
{
"description": "Replace :stable with semver tag + digest",
"matchDatasources": ["docker"], "matchDatasources": ["docker"],
"matchManagers": ["docker-compose"],
"matchCurrentValue": "stable", "matchCurrentValue": "stable",
"versioning": "docker", "versioning": "docker",
"pinDigests": true "pinDigests": true