mirror of
https://github.com/thegeeklab/renovate-presets.git
synced 2024-11-21 23:10:40 +00:00
fix: add version handling for opentofu
This commit is contained in:
parent
2ecdbc1c15
commit
e2eb1dd58d
@ -1,7 +1,10 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"description": ["Preset for use with ansible repositories"],
|
"description": ["Preset for use with ansible repositories"],
|
||||||
"extends": ["github>thegeeklab/renovate-presets:base"],
|
"extends": [
|
||||||
|
"github>thegeeklab/renovate-presets:base",
|
||||||
|
"github>thegeeklab/renovate-presets:opentofu"
|
||||||
|
],
|
||||||
"customManagers": [
|
"customManagers": [
|
||||||
{
|
{
|
||||||
"customType": "regex",
|
"customType": "regex",
|
||||||
|
29
opentofu.json
Normal file
29
opentofu.json
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"description": ["Preset for use with OpenTofu"],
|
||||||
|
"extends": ["github>thegeeklab/renovate-presets:base"],
|
||||||
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"managers": ["terraform"],
|
||||||
|
"matchPackageNames": ["hashicorp/terraform"],
|
||||||
|
"enabled": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"customManagers": [
|
||||||
|
{
|
||||||
|
"customType": "regex",
|
||||||
|
"fileMatch": [
|
||||||
|
"^terraform/.+\\.tf$",
|
||||||
|
"^.woodpecker/.+\\.ya?ml$",
|
||||||
|
"^.drone.ya?ml$"
|
||||||
|
],
|
||||||
|
"matchStrings": [
|
||||||
|
"required_version = \"?= (?<currentValue>.*?)\"?\\s",
|
||||||
|
"tofu_version: \"?(?<currentValue>.*?)\"?\\s"
|
||||||
|
],
|
||||||
|
"datasourceTemplate": "github-releases",
|
||||||
|
"depNameTemplate": "opentofu/opentofu",
|
||||||
|
"extractVersionTemplate": "^v?(?<version>.*)$"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -4,6 +4,7 @@
|
|||||||
"extends": ["github>thegeeklab/renovate-presets:base"],
|
"extends": ["github>thegeeklab/renovate-presets:base"],
|
||||||
"customManagers": [
|
"customManagers": [
|
||||||
{
|
{
|
||||||
|
"customType": "regex",
|
||||||
"fileMatch": ["\\.pkr\\.hcl"],
|
"fileMatch": ["\\.pkr\\.hcl"],
|
||||||
"matchStrings": [
|
"matchStrings": [
|
||||||
"required_version[\\s]+=[\\s]+\"=?(?<currentValue>\\S*)\"",
|
"required_version[\\s]+=[\\s]+\"=?(?<currentValue>\\S*)\"",
|
||||||
|
Loading…
Reference in New Issue
Block a user