Skip to content

Commit

Permalink
Add packer
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Sep 30, 2024
1 parent 9613ba2 commit f8ed8cc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions default.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,18 @@
"// renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>.+?)(?: registryUrl=(?<registryUrl>.+?))?(?: (?:packageName|lookupName)=(?<packageName>.+?))?(?: versioning=(?<versioning>[a-z-]+?))?\\s.+?Version :?= \"(?<currentValue>.+?)\"\\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]+\"=?(?<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*)\""
]
}
],
"timezone": "America/Los_Angeles"
Expand Down

0 comments on commit f8ed8cc

Please sign in to comment.