mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 01:29:09 +00:00
fix default tagging for cloud run
This commit is contained in:
parent
22b15ec16a
commit
afdf331070
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
locals {
|
||||
uiTag = var.ui_tag == "" ? ":${var.environment_tag}" : var.ui_tag
|
||||
}
|
||||
|
||||
resource "google_cloud_run_service" "web" {
|
||||
for_each = toset(var.ui_regions)
|
||||
|
||||
|
@ -7,7 +11,7 @@ resource "google_cloud_run_service" "web" {
|
|||
template {
|
||||
spec {
|
||||
containers {
|
||||
image = "${local.artifactBaseMap[each.key]}/ui${var.ui_tag}"
|
||||
image = "${local.artifactBaseMap[each.key]}/ui${local.uiTag}"
|
||||
|
||||
env {
|
||||
name = "API_PUBLIC_URI"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue