chore: cross-platform docker build (#6198)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2024-07-31 22:31:06 +07:00 committed by GitHub
parent 6bd7d8bf9d
commit 31f6fcbcf8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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