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

fix: cleanup packer preset and add extractVersionTemplate

This commit is contained in:
Robert Kaussow 2024-01-17 23:44:17 +01:00
parent ddfb5dc820
commit 1e76c2362d
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -11,34 +11,8 @@
"version[\\s]+=[\\s]+\"(?<currentValue>\\S*)\"[\\s]+source[\\s]+=[\\s]+\"github.com/(?<depName>\\S*)\"" "version[\\s]+=[\\s]+\"(?<currentValue>\\S*)\"[\\s]+source[\\s]+=[\\s]+\"github.com/(?<depName>\\S*)\""
], ],
"datasourceTemplate": "github-releases", "datasourceTemplate": "github-releases",
"depNameTemplate": "{{#if depName}}{{#if (containsString depName 'hashicorp/')}}{{{replace 'hashicorp/' 'hashicorp/packer-plugin-' depName}}}{{else}}{{{depName}}}{{/if}}{{else}}hashicorp/packer{{/if}}" "depNameTemplate": "{{#if depName}}{{#if (containsString depName 'hashicorp/')}}{{{replace 'hashicorp/' 'hashicorp/packer-plugin-' depName}}}{{else}}{{{depName}}}{{/if}}{{else}}hashicorp/packer{{/if}}",
}, "extractVersionTemplate": "^v?(?<version>.*)$"
{
"customType": "regex",
"fileMatch": [
"^flux/(?:.+/)overlays/(?:.+/)patches/(?:postgresCluster)\\.ya?ml$"
],
"matchStrings": [
"\\s+(?:imageName):\\s+\"?'?(?<depName>[^:\\s]+):(?<currentValue>[^\"'@\\s]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?\"?'?"
],
"datasourceTemplate": "docker"
},
{
"customType": "regex",
"fileMatch": ["^flux/(?:.+/)overlays/(?:.+/)(?:configmap)\\.ya?ml$"],
"matchStrings": [
".+(?:_IMAGE):\\s+\"?'?(?<depName>[^:\\s]+):(?<currentValue>[^\"'@\\s]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?\"?'?"
],
"datasourceTemplate": "docker"
},
{
"customType": "regex",
"fileMatch": ["^flux/crds/.+\\.ya?ml$"],
"matchStrings": [
"# renovate: registryUrl=(?<registryUrl>.*?) chart=(?<depName>.*)\\s.+k8up-(?<currentValue>.*?)/.+"
],
"datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}helm{{/if}}",
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
} }
] ]
} }