Skip to content

Commit

Permalink
Have renovate track update to tf module
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Jan 20, 2025
1 parent 3af98df commit 9e97c11
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions 00-main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ locals {
}

module "vault" {
# renovate: datasource=git-refs depName=terraform-vault-cloudrun branch=main
source = "git::https://github.com/libops/terraform-vault-cloudrun?ref=baf086deaabe421a50ab5337f260bb2662c376f9"
providers = {
docker = docker
Expand Down
12 changes: 12 additions & 0 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@
],
},
],
customManagers: [
{
customType: 'regex',
description: 'Update git ref SHAs in terraform modules',
fileMatch: [
'^.*\\.tf$',
],
matchStrings: [
'\\s+# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>.+?) branch=(?<currentValue>.+?)\\s+source = \\"git::(?<packageName>.+?)\\?ref=(?<currentDigest>.+?)\\"$'
],
},
],
labels: [
'dependencies',
],
Expand Down

0 comments on commit 9e97c11

Please sign in to comment.