From 8cdbb818adcbc4a6fd759524995fe5ef36fc137d Mon Sep 17 00:00:00 2001 From: Piotr Date: Sat, 24 Feb 2024 18:19:25 +0100 Subject: [PATCH] Build images for multiple platforms (amd64/arm64) (#2) --- .github/workflows/release.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 317de0b..876d7a4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -41,6 +41,13 @@ jobs: ref: ${{ steps.params.outputs.ref }} persist-credentials: false + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Buildx + id: buildx + uses: docker/setup-buildx-action@v3 + - name: Log in to the container registry uses: docker/login-action@v3 with: @@ -48,13 +55,10 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Set up Buildx - id: buildx - uses: docker/setup-buildx-action@v3 - - name: Build and push uses: docker/build-push-action@v5 with: + platforms: linux/amd64,linux/arm64 context: . target: prod file: Dockerfile