Skip to content

Commit

Permalink
chore(regex-managers): Support Contailerfile (#22115)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmilbaum committed May 12, 2023
1 parent 15dacb5 commit 9b96e07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/config/presets/internal/regex-managers.ts
Expand Up @@ -7,7 +7,10 @@ export const presets: Record<string, Preset> = {
description: 'Update `_VERSION` variables in Dockerfiles.',
regexManagers: [
{
fileMatch: ['(^|/|\\.)Dockerfile$', '(^|/)Dockerfile[^/]*$'],
fileMatch: [
'(^|/|\\.)([Dd]ocker|[Cc]ontainer)file$',
'(^|/)([Dd]ocker|[Cc]ontainer)file[^/]*$',
],
matchStrings: [
'# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>[^\\s]+?)(?: (lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: registryUrl=(?<registryUrl>[^\\s]+?))?\\s(?:ENV|ARG) .+?_VERSION[ =]"?(?<currentValue>.+?)"?\\s',
],
Expand Down

0 comments on commit 9b96e07

Please sign in to comment.