From 415932e289253171da35c653dcc45c6a72d827f2 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Sun, 17 Oct 2021 22:51:45 +1100 Subject: [PATCH] docker-compose: fix bug where database_tag isn't respected --- docker-compose.jsonnet | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.jsonnet b/docker-compose.jsonnet index cee465e..320624a 100644 --- a/docker-compose.jsonnet +++ b/docker-compose.jsonnet @@ -183,10 +183,10 @@ clean_channels:: [std.split(c, '!')[0] for c in $.channels], // Image format helper - get_image(name):: "%s/wubloader-%s:%s" % [ + get_image(name, tag=$.image_tag):: "%s/wubloader-%s:%s" % [ $.image_base, name, - $.image_tag, + tag, ], // docker-compose version @@ -411,7 +411,7 @@ }, [if $.enabled.postgres then "postgres"]: { - image: $.get_image("postgres"), + image: $.get_image("postgres", $.database_tag), restart: "on-failure", [if "postgres" in $.ports then "ports"]: ["%s:5432" % $.ports.postgres], environment: $.env + {