mirror of
https://github.com/thegeeklab/renovate-presets.git
synced 2024-11-15 04:40:39 +00:00
20 lines
939 B
JSON
20 lines
939 B
JSON
{
|
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
"description": ["Preset for use with Hashicorp Packer repositories"],
|
|
"extends": ["github>thegeeklab/renovate-presets:base"],
|
|
"customManagers": [
|
|
{
|
|
"customType": "regex",
|
|
"fileMatch": ["\\.pkr\\.hcl"],
|
|
"matchStrings": [
|
|
"required_version[\\s]+=[\\s]+\"=?(?<currentValue>\\S*)\"",
|
|
"source[\\s]+=[\\s]+\"github.com/(?<depName>\\S*)\"[\\s]+version[\\s]+=[\\s]+\"(?<currentValue>\\S*)\"",
|
|
"version[\\s]+=[\\s]+\"(?<currentValue>\\S*)\"[\\s]+source[\\s]+=[\\s]+\"github.com/(?<depName>\\S*)\""
|
|
],
|
|
"datasourceTemplate": "github-releases",
|
|
"depNameTemplate": "{{#if depName}}{{#if (containsString depName 'hashicorp/')}}{{{replace 'hashicorp/' 'hashicorp/packer-plugin-' depName}}}{{else}}{{{depName}}}{{/if}}{{else}}hashicorp/packer{{/if}}",
|
|
"extractVersionTemplate": "^v?(?<version>.*)$"
|
|
}
|
|
]
|
|
}
|