File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 44
44
] ,
45
45
datasourceTemplate : "npm" ,
46
46
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}}' ,
47
61
}
48
62
]
49
63
}
You can’t perform that action at this time.
0 commit comments