2024-01-17 20:08:31 +00:00
|
|
|
{
|
|
|
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
|
|
"description": ["Preset for use with Hashicorp Packer repositories"],
|
|
|
|
"extends": ["github>thegeeklab/renovate-presets:base"],
|
|
|
|
"customManagers": [
|
|
|
|
{
|
2024-02-09 09:51:26 +00:00
|
|
|
"customType": "regex",
|
2024-01-17 20:08:31 +00:00
|
|
|
"fileMatch": ["\\.pkr\\.hcl"],
|
|
|
|
"matchStrings": [
|
|
|
|
"required_version[\\s]+=[\\s]+\"=?(?<currentValue>\\S*)\"",
|
|
|
|
"source[\\s]+=[\\s]+\"github.com/(?<depName>\\S*)\"[\\s]+version[\\s]+=[\\s]+\"(?<currentValue>\\S*)\"",
|
2024-01-17 21:10:45 +00:00
|
|
|
"version[\\s]+=[\\s]+\"(?<currentValue>\\S*)\"[\\s]+source[\\s]+=[\\s]+\"github.com/(?<depName>\\S*)\""
|
2024-01-17 20:08:31 +00:00
|
|
|
],
|
|
|
|
"datasourceTemplate": "github-releases",
|
2024-01-17 22:44:17 +00:00
|
|
|
"depNameTemplate": "{{#if depName}}{{#if (containsString depName 'hashicorp/')}}{{{replace 'hashicorp/' 'hashicorp/packer-plugin-' depName}}}{{else}}{{{depName}}}{{/if}}{{else}}hashicorp/packer{{/if}}",
|
|
|
|
"extractVersionTemplate": "^v?(?<version>.*)$"
|
2024-01-17 20:08:31 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|