From 59856676fc19431b2d09d51cdedd547f0ccb668a Mon Sep 17 00:00:00 2001 From: Joe Corall Date: Sat, 1 Mar 2025 07:29:41 -0500 Subject: [PATCH] track vault terraform with renovate --- 00-main.tf | 7 +++++-- renovate.json5 | 12 ++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/00-main.tf b/00-main.tf index fbcf4f5..e237d71 100644 --- a/00-main.tf +++ b/00-main.tf @@ -41,10 +41,13 @@ provider "docker" { locals { ci_gsa = "github@${var.project}.iam.gserviceaccount.com" + # renovate: datasource=github-releases depName=terraform-vault-cloudrun packageName=libops/terraform-vault-cloudrun + VCR_VERSION = "0.0.3" + VI_VERSION = "0.4.0" } module "vault" { - source = "git::https://github.com/libops/terraform-vault-cloudrun?ref=0.0.3" + source = "git::https://github.com/libops/terraform-vault-cloudrun?ref=${local.VCR_VERSION}" providers = { docker = docker google = google @@ -52,7 +55,7 @@ module "vault" { } project = var.project region = var.region - init_image = "jcorall/vault-init:0.4.0" + init_image = "jcorall/vault-init:${local.VI_VERSION}" } provider "vault" { diff --git a/renovate.json5 b/renovate.json5 index 88f75e6..27ca51d 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -37,6 +37,18 @@ ], }, ], + "customManagers": [ + { + customType: 'regex', + description: 'Update _VERSION variables in Dockerfiles', + fileMatch: [ + '.*\\.tf$', + ], + matchStrings: [ + '([ ]+)?# renovate: datasource=(?[a-z-]+?) depName=(?.+?)(?: packageName=(?.+?))?(?: versioning=(?[a-z-]+?))?\\s?([ ]+)?.+?_VERSION = \\"(?.+?)\\"$', + ], + }, + ], labels: [ 'dependencies', ],