mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-26 09:05:10 +00:00
test if event is pull request
This commit is contained in:
parent
fa0b9c97a5
commit
0a17ee9bd8
1 changed files with 5 additions and 4 deletions
|
|
@ -13,6 +13,10 @@ variable "ERPNEXT_VERSION" {
|
|||
default = "develop"
|
||||
}
|
||||
|
||||
variable "GITHUB_EVENT_NAME" {
|
||||
default = "pull_request"
|
||||
}
|
||||
|
||||
# Bench image
|
||||
|
||||
target "bench" {
|
||||
|
|
@ -58,10 +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 = [
|
||||
"linux/amd64",
|
||||
"linux/arm64"
|
||||
]
|
||||
platforms = notequal("pull_request", ${GITHUB_EVENT_NAME}}, ["linux/amd64","linux/arm64"], ["linux/amd64"])
|
||||
}
|
||||
|
||||
target "frappe-worker" {
|
||||
|
|
|
|||
Loading…
Reference in a new issue