mirror of
https://github.com/thegeeklab/renovate-presets.git
synced 2024-11-24 12:00:40 +00:00
feat: add packer preset
This commit is contained in:
parent
f0deb49698
commit
8d8b155f35
@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"description": ["Preset for use with kubernetes repositories"],
|
||||
"description": ["Preset for use with Kubernetes repositories"],
|
||||
"extends": ["github>thegeeklab/renovate-presets:base"],
|
||||
"flux": {
|
||||
"fileMatch": ["^flux/.+\\.ya?ml$"]
|
||||
|
44
packer.json
Normal file
44
packer.json
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"description": ["Preset for use with Hashicorp Packer repositories"],
|
||||
"extends": ["github>thegeeklab/renovate-presets:base"],
|
||||
"customManagers": [
|
||||
{
|
||||
"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}}"
|
||||
},
|
||||
{
|
||||
"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}}"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user