0
0
mirror of https://github.com/thegeeklab/renovate-presets.git synced 2024-11-24 12:00:40 +00:00

fix: add version handling for opentofu

This commit is contained in:
Robert Kaussow 2024-02-09 10:51:26 +01:00
parent 2ecdbc1c15
commit e2eb1dd58d
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
3 changed files with 34 additions and 1 deletions

View File

@ -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
View 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>.*)$"
}
]
}

View File

@ -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*)\"",