Skip to content

Commit

Permalink
Have renovate detect examples/*/Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Dec 20, 2024
1 parent 828ed47 commit f22c369
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@
':rebaseStalePrs',
'customManagers:dockerfileVersions',
],
dockerfile: {
fileMatch: ["examples/.+/Dockerfile$"]
},
customManagers: [
{
customType: "regex",
fileMatch: ["examples/.+/Dockerfile$"],
matchStrings: [
"# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?(?: registryUrl=(?<registryUrl>[^\\s]+?))?\\s(?:ENV|ARG)\\s+[A-Za-z0-9_]+?_VERSION[ =][\"']?(?<currentValue>.+?)[\"']?\\s"
]
}
],
packageRules: [
{
matchUpdateTypes: [
Expand Down Expand Up @@ -64,4 +76,4 @@
vulnerabilityAlerts: {
enabled: true,
},
}
}

0 comments on commit f22c369

Please sign in to comment.