From fd7fc1df348183ad11056eb126599c26cca01168 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 6 Jul 2022 16:53:25 +0100 Subject: [PATCH] Adding QEMU builder for ARM builds. --- .github/workflows/deploy-single-image.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-single-image.yml b/.github/workflows/deploy-single-image.yml index 1ed739f049..be24caa228 100644 --- a/.github/workflows/deploy-single-image.yml +++ b/.github/workflows/deploy-single-image.yml @@ -28,6 +28,11 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} + - name: Setup QEMU + uses: docker/setup-qemu-action@v1 + - name: Setup Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v1 - name: Install Pro run: yarn install:pro $BRANCH $BASE_BRANCH - name: Run Yarn @@ -62,7 +67,9 @@ jobs: echo $release_version echo "RELEASE_VERSION=$release_version" >> $GITHUB_ENV - name: Tag and release Budibase service docker image - run: | - yarn build:docker:single:image - docker tag budibase budibase/budibase:v${{ env.RELEASE_VERSION }} - docker push budibase/budibase:v${{ env.RELEASE_VERSION }} + uses: docker/build-push-action@v2 + with: + context: . + platforms: linux/amd64,linux/arm64 + tags: budibase,budibase/budibase:v${{ env.RELEASE_VERSION }} + file: ./hosting/single/Dockerfile