mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +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
|
@ -16,7 +16,7 @@ variable "ui_regions" {
|
|||
variable "ui_tag" {
|
||||
type = string
|
||||
description = "Specific tag to deploy"
|
||||
default = ":main"
|
||||
default = ""
|
||||
}
|
||||
|
||||
variable "bot_client_id" {
|
||||
|
|
|
@ -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
Reference in a new issue