From f8ed8cc4c4d84435679ebf0af7574a37e5dea390 Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Mon, 30 Sep 2024 16:41:40 -0700 Subject: [PATCH] Add packer --- default.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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"