From 17c3437db131daa1c50c180b20b7c576300dbcb8 Mon Sep 17 00:00:00 2001 From: Al Majumdar <88921269+restlessronin@users.noreply.github.com> Date: Fri, 1 Apr 2022 15:17:09 +0530 Subject: [PATCH] use env variable to control multi arch --- docker-bake.hcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-bake.hcl b/docker-bake.hcl index d9ab4b97..8df6491a 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -14,7 +14,7 @@ variable "ERPNEXT_VERSION" { } variable "MULTI_ARCH_BUILD" { - default = "true" + default = true } # Bench image @@ -62,7 +62,7 @@ target "default-args" { # If `ERPNEXT_VERSION` variable contains "v12" use Python 3.7. Else — 3.9. PYTHON_VERSION = can(regex("v12", "${ERPNEXT_VERSION}")) ? "3.7" : "3.9" } - platforms = equal("true", "${MULTI_ARCH_BUILD}") ? ["linux/amd64","linux/arm64"] : ["linux/amd64"] + platforms = equal(true, "${MULTI_ARCH_BUILD}") ? ["linux/amd64","linux/arm64"] : ["linux/amd64"] } target "frappe-worker" {