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 2aafbc5 commit a9e0095
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions infrastructure/base/modules/env/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
]
}

Expand Down

0 comments on commit a9e0095

Please sign in to comment.