mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-26 09:05:10 +00:00
use env variable to control multi arch
This commit is contained in:
parent
968e152f9e
commit
17c3437db1
1 changed files with 2 additions and 2 deletions
|
|
@ -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" {
|
||||
|
|
|
|||
Loading…
Reference in a new issue