diff --git a/.dockerignore b/.dockerignore index b512c09..1380c2e 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,2 @@ -node_modules \ No newline at end of file +node_modules +.next \ No newline at end of file diff --git a/terraform/variables.tf b/terraform/variables.tf index 7751249..5d4b596 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -16,7 +16,7 @@ variable "ui_regions" { variable "ui_tag" { type = string description = "Specific tag to deploy" - default = "main" + default = ":main" } variable "bot_client_id" { diff --git a/terraform/webapp.tf b/terraform/webapp.tf index fadf992..f3eed59 100644 --- a/terraform/webapp.tf +++ b/terraform/webapp.tf @@ -7,7 +7,7 @@ resource "google_cloud_run_service" "web" { template { spec { containers { - image = "us-docker.pkg.dev/roleypoly/roleypoly/ui:${var.ui_tag}" + image = "us-docker.pkg.dev/roleypoly/roleypoly/ui${var.ui_tag}" env { name = "API_PUBLIC_URI" diff --git a/terraform/weblb.tf b/terraform/weblb.tf index e56b8eb..978a351 100644 --- a/terraform/weblb.tf +++ b/terraform/weblb.tf @@ -65,6 +65,10 @@ resource "google_compute_region_network_endpoint_group" "web_lb" { provider = google-beta for_each = toset(var.ui_regions) + lifecycle { + create_before_destroy = true + } + name = "lb-fr-neg-${each.key}-${var.environment_tag}" region = google_cloud_run_service.web[each.key].location network_endpoint_type = "SERVERLESS"