diff --git a/default.json b/default.json index 495194d..d6e22f0 100644 --- a/default.json +++ b/default.json @@ -149,6 +149,18 @@ "// renovate: datasource=(?[a-z-]+?) depName=(?.+?)(?: registryUrl=(?.+?))?(?: (?:packageName|lookupName)=(?.+?))?(?: versioning=(?[a-z-]+?))?\\s.+?Version :?= \"(?.+?)\"\\s" ], "versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}" + }, + { + "datasourceTemplate": "github-tags", + "depNameTemplate": "{{#if depName}}{{#if (containsString depName \"hashicorp/\")}}{{{replace \"hashicorp/\" \"hashicorp/packer-plugin-\" depName}}}{{else}}{{{depName}}}{{/if}}{{else}}hashicorp/packer{{/if}}", + "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*)\"" + ] } ], "timezone": "America/Los_Angeles"