mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-27 09:15:10 +00:00
try variation
This commit is contained in:
parent
6109d1d7c2
commit
08f319c38e
2 changed files with 2 additions and 5 deletions
5
.github/workflows/build_bench.yml
vendored
5
.github/workflows/build_bench.yml
vendored
|
|
@ -31,15 +31,12 @@ jobs:
|
||||||
- name: Setup Buildx
|
- name: Setup Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Echo
|
|
||||||
run: echo "The value is ${{ github.event_name == 'pull_request' }}"
|
|
||||||
|
|
||||||
- name: Build and test
|
- name: Build and test
|
||||||
uses: docker/bake-action@v1.7.0
|
uses: docker/bake-action@v1.7.0
|
||||||
with:
|
with:
|
||||||
targets: bench-test
|
targets: bench-test
|
||||||
env:
|
env:
|
||||||
MULTI_ARCH_BUILD: ${{ github.event_name == 'pull_request' }}
|
MULTI_ARCH_BUILD: "${{ github.event_name == 'pull_request' }}"
|
||||||
|
|
||||||
- name: Login
|
- name: Login
|
||||||
if: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }}
|
if: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }}
|
||||||
|
|
|
||||||
|
|
@ -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 = 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" {
|
target "frappe-worker" {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue