Skip to content

Commit

Permalink
feat: arm
Browse files Browse the repository at this point in the history
  • Loading branch information
Savid committed Aug 15, 2023
1 parent f4c91f3 commit f93e7a2
Show file tree
Hide file tree
Showing 14 changed files with 72 additions and 13 deletions.
7 changes: 6 additions & 1 deletion .github/actions/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ inputs:
type: string
default: ./source/Dockerfile
required: false
platform:
description: Platform to build the Docker image for
type: string
default: linux/amd64
required: false
# Secrets
DOCKER_USERNAME:
required: true
Expand Down Expand Up @@ -101,7 +106,7 @@ runs:
# - $target_tag-commit
tags: ${{ inputs.target_repository }}:${{ inputs.target_tag }}-${{ steps.git_commit_hash.outputs.git_commit_hash }},${{ inputs.target_repository }}:${{ inputs.target_tag }}
push: true
platforms: linux/amd64
platforms: ${{ inputs.platform }}
labels: |
ethpandaops.io.repo=${{ inputs.source_repository }}
ethpandaops.io.commitRef=${{ inputs.source_ref }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/build-push-besu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ on:
jobs:
besu:
runs-on: ${{ inputs.runs_on }}
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
Expand All @@ -42,6 +46,6 @@ jobs:
build_script: ./besu/build.sh
target_tag: ${{ inputs.docker_tag || inputs.ref }}
target_repository: ethpandaops/besu

platform: ${{ matrix.platform }}
DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
6 changes: 5 additions & 1 deletion .github/workflows/build-push-eleel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ on:
jobs:
eleel:
runs-on: ${{ inputs.runs_on }}
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
Expand All @@ -41,6 +45,6 @@ jobs:
target_tag: ${{ inputs.docker_tag || inputs.ref }}
target_repository: ethpandaops/eleel
target_dockerfile: ./eleel/Dockerfile

platform: ${{ matrix.platform }}
DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
10 changes: 9 additions & 1 deletion .github/workflows/build-push-erigon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ on:
jobs:
erigon:
runs-on: ${{ inputs.runs_on }}
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
fail-fast: false
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
Expand All @@ -40,6 +48,6 @@ jobs:
source_ref: ${{ inputs.ref }}
target_tag: ${{ inputs.docker_tag || inputs.ref }}
target_repository: ethpandaops/erigon

platform: ${{ matrix.platform }}
DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
6 changes: 5 additions & 1 deletion .github/workflows/build-push-ethereumjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ on:
jobs:
ethereumjs:
runs-on: ${{ inputs.runs_on }}
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
Expand All @@ -41,6 +45,6 @@ jobs:
target_tag: ${{ inputs.docker_tag || inputs.ref }}
target_repository: ethpandaops/ethereumjs
target_dockerfile: ./ethereumjs/Dockerfile

platform: ${{ matrix.platform }}
DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
6 changes: 5 additions & 1 deletion .github/workflows/build-push-geth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ on:
jobs:
geth:
runs-on: ${{ inputs.runs_on }}
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
Expand All @@ -40,6 +44,6 @@ jobs:
source_ref: ${{ inputs.ref }}
target_tag: ${{ inputs.docker_tag || inputs.ref }}
target_repository: ethpandaops/geth

platform: ${{ matrix.platform }}
DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
6 changes: 5 additions & 1 deletion .github/workflows/build-push-lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ on:
jobs:
lighthouse:
runs-on: ${{ inputs.runs_on }}
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
Expand All @@ -41,6 +45,6 @@ jobs:
target_tag: ${{ inputs.docker_tag || inputs.ref }}
target_repository: ethpandaops/lighthouse
target_dockerfile: ./lighthouse/Dockerfile

platform: ${{ matrix.platform }}
DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
6 changes: 5 additions & 1 deletion .github/workflows/build-push-lodestar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ on:
jobs:
lodestar:
runs-on: ${{ inputs.runs_on }}
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
Expand All @@ -39,6 +43,6 @@ jobs:
source_ref: ${{ inputs.ref }}
target_tag: ${{ inputs.docker_tag || inputs.ref }}
target_repository: ethpandaops/lodestar

platform: ${{ matrix.platform }}
DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
6 changes: 5 additions & 1 deletion .github/workflows/build-push-nethermind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ on:
jobs:
nethermind:
runs-on: ${{ inputs.runs_on }}
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
Expand All @@ -39,6 +43,6 @@ jobs:
source_ref: ${{ inputs.ref }}
target_tag: ${{ inputs.docker_tag || inputs.ref }}
target_repository: ethpandaops/nethermind

platform: ${{ matrix.platform }}
DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
6 changes: 5 additions & 1 deletion .github/workflows/build-push-nimbus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ on:
jobs:
nimbus:
runs-on: ${{ inputs.runs_on }}
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
Expand All @@ -41,6 +45,6 @@ jobs:
target_tag: ${{ inputs.docker_tag || inputs.ref }}
target_repository: ethpandaops/nimbus
target_dockerfile: ./nimbus/Dockerfile

platform: ${{ matrix.platform }}
DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
6 changes: 5 additions & 1 deletion .github/workflows/build-push-prysm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ on:
jobs:
prysm:
runs-on: ${{ inputs.runs_on }}
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
Expand All @@ -42,6 +46,6 @@ jobs:
target_tag: ${{ inputs.docker_tag || inputs.ref }}
target_repository: ethpandaops/prysm
target_dockerfile: ./prysm/Dockerfile

platform: ${{ matrix.platform }}
DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
6 changes: 5 additions & 1 deletion .github/workflows/build-push-reth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ on:
jobs:
reth:
runs-on: ${{ inputs.runs_on }}
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
Expand All @@ -40,6 +44,6 @@ jobs:
source_ref: ${{ inputs.ref }}
target_tag: ${{ inputs.docker_tag || inputs.ref }}
target_repository: ethpandaops/reth

platform: ${{ matrix.platform }}
DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
6 changes: 5 additions & 1 deletion .github/workflows/build-push-teku.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ on:
jobs:
teku:
runs-on: ${{ inputs.runs_on }}
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
Expand All @@ -40,6 +44,6 @@ jobs:
build_script: ./teku/build.sh
target_tag: ${{ inputs.docker_tag || inputs.ref }}
target_repository: ethpandaops/teku

platform: ${{ matrix.platform }}
DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
2 changes: 2 additions & 0 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ jobs:
fail-fast: false
matrix:
config: ${{fromJson(needs.check.outputs.configs)}}
platform: [linux/amd64, linux/arm64]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -116,5 +117,6 @@ jobs:
target_tag: ${{ matrix.config.target.tag }}
target_repository: ${{ matrix.config.target.repository }}
target_dockerfile: ${{ matrix.config.target.dockerfile }}
platform: ${{ matrix.platform }}
DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"

0 comments on commit f93e7a2

Please sign in to comment.