Skip to content

Commit 62d1641

Browse files
bitnikmrclrchtr
authored andcommitted
chore(project): renovate packer dependencies
1 parent 3f3329d commit 62d1641

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/renovate.json5

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,20 @@
4444
],
4545
datasourceTemplate: "npm",
4646
depNameTemplate: "conventional-changelog-conventionalcommits",
47+
},
48+
{
49+
description: "Update packer dependencies.",
50+
customType: "regex",
51+
fileMatch: [
52+
'\\.pkr\\.hcl',
53+
],
54+
matchStrings: [
55+
'required_version[\\s]+=[\\s]+"=?(?<currentValue>\\S*)"',
56+
'source[\\s]+=[\\s]+"github.com/(?<depName>\\S*)"[\\s]+version[\\s]+=[\\s]+"(?<currentValue>\\S*)"',
57+
'version[\\s]+=[\\s]+"(?<currentValue>\\S*)[\\s]+source[\\s]+=[\\s]+"github.com/(?<depName>\\S*)"',
58+
],
59+
datasourceTemplate: 'github-tags',
60+
depNameTemplate: '{{#if depName}}{{#if (containsString depName "hashicorp/")}}{{{replace "hashicorp/" "hashicorp/packer-plugin-" depName}}}{{else}}{{{depName}}}{{/if}}{{else}}hashicorp/packer{{/if}}',
4761
}
4862
]
4963
}

0 commit comments

Comments
 (0)