From a9e0095654161b015bc938612efc0afb2070a3bd Mon Sep 17 00:00:00 2001 From: Agnieszka Figiel Date: Mon, 27 Nov 2023 13:09:32 +0100 Subject: [PATCH] Added a build step to update traffic to the last deployed jobs instance, since it seems to be left with 0% traffic --- infrastructure/base/modules/env/main.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/infrastructure/base/modules/env/main.tf b/infrastructure/base/modules/env/main.tf index aa81301db..892bfbb85 100644 --- a/infrastructure/base/modules/env/main.tf +++ b/infrastructure/base/modules/env/main.tf @@ -167,6 +167,15 @@ module "backend_build" { "--region", var.gcp_region, "--max-instances", var.backend_max_scale ] }, + { + name = "gcr.io/google.com/cloudsdktool/cloud-sdk" + entrypoint = "gcloud" + args = [ + "run", "services", "update-traffic", "${var.project_name}-jobs", + "--region", var.gcp_region, + "--to-latest" + ] + } ] }