Skip to content

Commit

Permalink
track vault terraform with renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Mar 1, 2025
1 parent e81da9a commit 5985667
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
7 changes: 5 additions & 2 deletions 00-main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,21 @@ 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
google-beta = google-beta
}
project = var.project
region = var.region
init_image = "jcorall/vault-init:0.4.0"
init_image = "jcorall/vault-init:${local.VI_VERSION}"
}

provider "vault" {
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 _VERSION variables in Dockerfiles',
fileMatch: [
'.*\\.tf$',
],
matchStrings: [
'([ ]+)?# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>.+?)(?: packageName=(?<packageName>.+?))?(?: versioning=(?<versioning>[a-z-]+?))?\\s?([ ]+)?.+?_VERSION = \\"(?<currentValue>.+?)\\"$',
],
},
],
labels: [
'dependencies',
],
Expand Down

0 comments on commit 5985667

Please sign in to comment.