From 08f319c38ef2d2eeb6db1d663eb8094fab69a3a3 Mon Sep 17 00:00:00 2001 From: Al Majumdar <88921269+restlessronin@users.noreply.github.com> Date: Fri, 1 Apr 2022 16:31:49 +0530 Subject: [PATCH] try variation --- .github/workflows/build_bench.yml | 5 +---- docker-bake.hcl | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_bench.yml b/.github/workflows/build_bench.yml index 0ded5155..520c00bb 100644 --- a/.github/workflows/build_bench.yml +++ b/.github/workflows/build_bench.yml @@ -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' }} diff --git a/docker-bake.hcl b/docker-bake.hcl index dc986d20..430764d4 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -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" {