From 85c9f6b0ed9f53cb70eca397dc82760bcc1af392 Mon Sep 17 00:00:00 2001 From: Marcos Maceo Date: Wed, 2 Oct 2024 19:34:46 +0400 Subject: [PATCH] fix: build on nethermind --- .github/workflows/docker.yml | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 459781a..532ee4d 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -106,6 +106,9 @@ jobs: with: platforms: linux/amd64,linux/arm64 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Extract metadata for the Docker image id: meta uses: docker/metadata-action@v4 @@ -113,18 +116,14 @@ jobs: images: | ${{ env.NAMESPACE }}/${{ env.NETHERMIND_IMAGE_NAME }} - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Build and push the Docker image - uses: docker/build-push-action@v4 - with: - context: . - file: nethermind/Dockerfile - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64,linux/arm64 - build-args: | - BUILD_CONFIG=release - TARGETARCH=${{ matrix.platform }} + - name: Build and push the Docker image using buildx + run: | + docker buildx build \ + --platform linux/amd64,linux/arm64 \ + --file nethermind/Dockerfile \ + --tag ${{ steps.meta.outputs.tags }} \ + --label ${{ steps.meta.outputs.labels }} \ + --build-arg BUILD_CONFIG=release \ + --build-arg TARGETARCH=${{ matrix.platform }} \ + --push \ + .