try variation

This commit is contained in:
Al Majumdar 2022-04-01 16:31:49 +05:30
parent 6109d1d7c2
commit 08f319c38e
2 changed files with 2 additions and 5 deletions

View file

@ -31,15 +31,12 @@ jobs:
- name: Setup Buildx
uses: docker/setup-buildx-action@v1
- name: Echo
run: echo "The value is ${{ github.event_name == 'pull_request' }}"
- name: Build and test
uses: docker/bake-action@v1.7.0
with:
targets: bench-test
env:
MULTI_ARCH_BUILD: ${{ github.event_name == 'pull_request' }}
MULTI_ARCH_BUILD: "${{ github.event_name == 'pull_request' }}"
- name: Login
if: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }}

View file

@ -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" {