From 898e6916e3584a306156f517899f481cf7edae2e 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/infrastructure/base/modules/env/main.tf b/infrastructure/base/modules/env/main.tf index 8734a2605..7faa0c20f 100644 --- a/infrastructure/base/modules/env/main.tf +++ b/infrastructure/base/modules/env/main.tf @@ -175,6 +175,13 @@ 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", "${var.project_name}-jobs", "update-traffic", "--to-latest" + ] + } ] }