Skip to content

Commit

Permalink
fix: build on nethermind
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevMac committed Oct 2, 2024
1 parent 7188de1 commit 85c9f6b
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,25 +106,24 @@ 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
with:
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 \
.

0 comments on commit 85c9f6b

Please sign in to comment.