From bde3e89fecd063420db438b941ac046778808db6 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Fri, 12 Jul 2024 15:36:27 -0500 Subject: [PATCH] fix: properly form DOCKER_REGISTRY when CI_REGISTRY defined/undefined --- containers/jug/dev.hcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers/jug/dev.hcl b/containers/jug/dev.hcl index 143699dc..e48e1d48 100644 --- a/containers/jug/dev.hcl +++ b/containers/jug/dev.hcl @@ -5,7 +5,7 @@ variable "BUILD_IMAGE" { default = "eic_" } variable "BUILD_TYPE" { default = "default" } # Variables whose defaults can be overridden on build -variable "DOCKER_REGISTRY" { default = join("/", [ CI_REGISTRY, CI_PROJECT_PATH, ""]) } +variable "DOCKER_REGISTRY" { default = join("/", concat(compact([CI_REGISTRY, CI_PROJECT_PATH]), [""])) } variable "BUILDER_IMAGE" { default = "debian_base" } variable "RUNTIME_IMAGE" { default = "debian_base" }