From 31f6fcbcf81746482c75756f617668ea98fd1ad8 Mon Sep 17 00:00:00 2001 From: Alexander Onnikov Date: Wed, 31 Jul 2024 22:31:06 +0700 Subject: [PATCH] chore: cross-platform docker build (#6198) Signed-off-by: Alexander Onnikov --- .github/workflows/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6c2c23868c..3cd687636b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -460,6 +460,17 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Configure docker + uses: crazy-max/ghaction-setup-docker@v3 + with: + daemon-config: | + { + "features": { + "containerd-snapshotter": true + } + } - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -488,6 +499,7 @@ jobs: run: node common/scripts/install-run-rush.js docker:build -v env: DOCKER_CLI_HINTS: false + DOCKER_EXTRA: --platform=linux/amd64,linux/arm64 - name: Login to Docker Hub if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }} uses: docker/login-action@v3