From 2c526fcf8ead66ff3055bbd77e37f663726503af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Pradel?= Date: Tue, 16 Apr 2024 17:33:53 +0200 Subject: [PATCH] feat: docker build for arm (#1947) --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea8dc98509..0584c95ce0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -886,6 +886,9 @@ jobs: @semantic-release/exec@6.0.3 conventional-changelog-conventionalcommits@6.1.0 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -927,6 +930,7 @@ jobs: uses: docker/build-push-action@v5 with: context: . + platforms: ${{ github.ref == 'refs/heads/master' && 'linux/amd64,linux/arm64' || 'linux/amd64' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} # Only push if (there's a new release on main branch, or if building a non-main branch) and (Only run on non-PR events or only PRs that aren't from forks)