mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-27 09:15:10 +00:00
test multi arch build
This commit is contained in:
parent
b6407f317c
commit
6645f7360f
1 changed files with 3 additions and 3 deletions
|
|
@ -13,8 +13,8 @@ variable "ERPNEXT_VERSION" {
|
||||||
default = "develop"
|
default = "develop"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "GITHUB_EVENT_NAME" {
|
variable "MULTI_ARCH_BUILD" {
|
||||||
default = "pull_request"
|
default = "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Bench image
|
# Bench image
|
||||||
|
|
@ -62,7 +62,7 @@ target "default-args" {
|
||||||
# If `ERPNEXT_VERSION` variable contains "v12" use Python 3.7. Else — 3.9.
|
# If `ERPNEXT_VERSION` variable contains "v12" use Python 3.7. Else — 3.9.
|
||||||
PYTHON_VERSION = can(regex("v12", "${ERPNEXT_VERSION}")) ? "3.7" : "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" {
|
target "frappe-worker" {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue