From dc65f255dcd3897ce9b0f442a469b972c3fb8da6 Mon Sep 17 00:00:00 2001 From: riccardo <106812074+riccardo-gnosis@users.noreply.github.com> Date: Tue, 8 Oct 2024 10:21:55 +0200 Subject: [PATCH] build for arm --- .github/workflows/build-and-release.yaml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-and-release.yaml b/.github/workflows/build-and-release.yaml index c1a3587..af7704f 100644 --- a/.github/workflows/build-and-release.yaml +++ b/.github/workflows/build-and-release.yaml @@ -16,11 +16,7 @@ jobs: # if: github.event.pull_request.merged == true - strategy: - matrix: - os: [ubuntu-latest] - - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest steps: @@ -54,11 +50,13 @@ jobs: - name: Push Latest run: | - docker build . --tag ghcr.io/${{ steps.org_name.outputs.org_name }}/goteth:latest - docker push ghcr.io/${{ steps.org_name.outputs.org_name }}/goteth:latest - + docker buildx build --platform linux/amd64,linux/arm64 \ + --tag ghcr.io/${{ steps.org_name.outputs.org_name }}/goteth:latest \ + --push . + - name: Push Versioned run: | - docker build . --tag ghcr.io/${{ steps.org_name.outputs.org_name }}/goteth:${{ steps.commit.outputs.short }} - docker push ghcr.io/${{ steps.org_name.outputs.org_name }}/goteth:${{ steps.commit.outputs.short }} + docker buildx build --platform linux/amd64,linux/arm64 \ + --tag ghcr.io/${{ steps.org_name.outputs.org_name }}/goteth:${{ steps.commit.outputs.short }} \ + --push .