Skip to content

Commit

Permalink
Added a build step to update traffic to the last deployed jobs instan…
Browse files Browse the repository at this point in the history
…ce, since it seems to be left with 0% traffic
  • Loading branch information
Agnieszka Figiel committed Nov 28, 2023
1 parent 3220c10 commit 898e691
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions infrastructure/base/modules/env/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
]
}

Expand Down

0 comments on commit 898e691

Please sign in to comment.