diff --git a/kubernetes.json b/kubernetes.json index c1c9673..d84a36c 100644 --- a/kubernetes.json +++ b/kubernetes.json @@ -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$"] diff --git a/packer.json b/packer.json new file mode 100644 index 0000000..f338b68 --- /dev/null +++ b/packer.json @@ -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]+\"=?(?\\S*)\"", + "source[\\s]+=[\\s]+\"github.com/(?\\S*)\"[\\s]+version[\\s]+=[\\s]+\"(?\\S*)\"", + "version[\\s]+=[\\s]+\"(?\\S*)[\\s]+source[\\s]+=[\\s]+\"github.com/(?\\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+\"?'?(?[^:\\s]+):(?[^\"'@\\s]+)(?:@(?sha256:[a-f0-9]+))?\"?'?" + ], + "datasourceTemplate": "docker" + }, + { + "customType": "regex", + "fileMatch": ["^flux/(?:.+/)overlays/(?:.+/)(?:configmap)\\.ya?ml$"], + "matchStrings": [ + ".+(?:_IMAGE):\\s+\"?'?(?[^:\\s]+):(?[^\"'@\\s]+)(?:@(?sha256:[a-f0-9]+))?\"?'?" + ], + "datasourceTemplate": "docker" + }, + { + "customType": "regex", + "fileMatch": ["^flux/crds/.+\\.ya?ml$"], + "matchStrings": [ + "# renovate: registryUrl=(?.*?) chart=(?.*)\\s.+k8up-(?.*?)/.+" + ], + "datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}helm{{/if}}", + "versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}" + } + ] +}