From ce0865ab2981260bbc8e5c95e40b3507ddfca0c7 Mon Sep 17 00:00:00 2001 From: Al Cutter Date: Thu, 22 Aug 2024 13:15:58 +0100 Subject: [PATCH] Test terraform configs (plan only) --- deployment/modules/gcp/cloudbuild/main.tf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/deployment/modules/gcp/cloudbuild/main.tf b/deployment/modules/gcp/cloudbuild/main.tf index 6a0a1a6a3..a3ec22446 100644 --- a/deployment/modules/gcp/cloudbuild/main.tf +++ b/deployment/modules/gcp/cloudbuild/main.tf @@ -77,6 +77,18 @@ resource "google_cloudbuild_trigger" "docker" { ] wait_for = ["docker_build_example"] } + step { + id = "terraform_plan_all" + name = "cloud-builders-community/terragrunt" + args = ["plan-all"] + env = [ + "TF_IN_AUTOMATION=1", + "TF_INPUT=false", + "TF_VAR_project_id=${var.project_id}" + ] + dir = "deploy/live" + wait_for = ["-"] + } options { logging = "CLOUD_LOGGING_ONLY" }