try syntax variation

This commit is contained in:
Al Majumdar 2022-04-01 15:39:49 +05:30
parent b6e4035e5d
commit 15eebe18e1

View file

@ -14,7 +14,7 @@ variable "ERPNEXT_VERSION" {
}
variable "MULTI_ARCH_BUILD" {
default = true
default = false
}
# 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" {