From 6645f7360fe56c424d534fe4e14f5bba8910cc11 Mon Sep 17 00:00:00 2001 From: Al Majumdar <88921269+restlessronin@users.noreply.github.com> Date: Wed, 30 Mar 2022 14:30:33 +0530 Subject: [PATCH] test multi arch build --- docker-bake.hcl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-bake.hcl b/docker-bake.hcl index 2e46a097..d9ab4b97 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -13,8 +13,8 @@ variable "ERPNEXT_VERSION" { default = "develop" } -variable "GITHUB_EVENT_NAME" { - default = "pull_request" +variable "MULTI_ARCH_BUILD" { + 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 = notequal("pull_request", "${GITHUB_EVENT_NAME}") ? ["linux/amd64","linux/arm64"] : ["linux/amd64"] + platforms = equal("true", "${MULTI_ARCH_BUILD}") ? ["linux/amd64","linux/arm64"] : ["linux/amd64"] } target "frappe-worker" {