{ "$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}}", "extractVersionTemplate": "^v?(?.*)$" } ] }