diff --git a/.github/actions/deploy/action.yml b/.github/actions/deploy/action.yml index 1e699dd..04fc150 100644 --- a/.github/actions/deploy/action.yml +++ b/.github/actions/deploy/action.yml @@ -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 @@ -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 }} diff --git a/.github/workflows/build-push-besu.yml b/.github/workflows/build-push-besu.yml index def91d2..f53073f 100644 --- a/.github/workflows/build-push-besu.yml +++ b/.github/workflows/build-push-besu.yml @@ -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 @@ -42,7 +46,7 @@ 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 }}" notify: diff --git a/.github/workflows/build-push-eleel.yml b/.github/workflows/build-push-eleel.yml index 0682f47..c508dc2 100644 --- a/.github/workflows/build-push-eleel.yml +++ b/.github/workflows/build-push-eleel.yml @@ -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 @@ -41,7 +45,7 @@ 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 }}" notify: diff --git a/.github/workflows/build-push-erigon.yml b/.github/workflows/build-push-erigon.yml index a70d35c..7574c3e 100644 --- a/.github/workflows/build-push-erigon.yml +++ b/.github/workflows/build-push-erigon.yml @@ -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 @@ -40,7 +48,7 @@ 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 }}" notify: diff --git a/.github/workflows/build-push-ethereumjs.yml b/.github/workflows/build-push-ethereumjs.yml index 683b541..a526170 100644 --- a/.github/workflows/build-push-ethereumjs.yml +++ b/.github/workflows/build-push-ethereumjs.yml @@ -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 @@ -41,7 +45,7 @@ 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 }}" notify: diff --git a/.github/workflows/build-push-geth.yml b/.github/workflows/build-push-geth.yml index 52a0b30..0a18f9a 100644 --- a/.github/workflows/build-push-geth.yml +++ b/.github/workflows/build-push-geth.yml @@ -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 @@ -40,7 +44,7 @@ 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 }}" notify: diff --git a/.github/workflows/build-push-lighthouse.yml b/.github/workflows/build-push-lighthouse.yml index 0bb1fd8..b2dc6bd 100644 --- a/.github/workflows/build-push-lighthouse.yml +++ b/.github/workflows/build-push-lighthouse.yml @@ -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 @@ -41,7 +45,7 @@ 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 }}" notify: diff --git a/.github/workflows/build-push-lodestar.yml b/.github/workflows/build-push-lodestar.yml index c30f480..0d04a24 100644 --- a/.github/workflows/build-push-lodestar.yml +++ b/.github/workflows/build-push-lodestar.yml @@ -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 @@ -39,7 +43,7 @@ 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 }}" notify: diff --git a/.github/workflows/build-push-nethermind.yml b/.github/workflows/build-push-nethermind.yml index 818f7c5..307463f 100644 --- a/.github/workflows/build-push-nethermind.yml +++ b/.github/workflows/build-push-nethermind.yml @@ -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 @@ -39,7 +43,7 @@ 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 }}" notify: diff --git a/.github/workflows/build-push-nimbus.yml b/.github/workflows/build-push-nimbus.yml index d26cfc0..d89832e 100644 --- a/.github/workflows/build-push-nimbus.yml +++ b/.github/workflows/build-push-nimbus.yml @@ -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 @@ -41,7 +45,7 @@ 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 }}" notify: diff --git a/.github/workflows/build-push-prysm.yml b/.github/workflows/build-push-prysm.yml index c56a931..8cba0b4 100644 --- a/.github/workflows/build-push-prysm.yml +++ b/.github/workflows/build-push-prysm.yml @@ -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 @@ -42,7 +46,7 @@ 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 }}" notify: diff --git a/.github/workflows/build-push-reth.yml b/.github/workflows/build-push-reth.yml index 1aed5af..a93465d 100644 --- a/.github/workflows/build-push-reth.yml +++ b/.github/workflows/build-push-reth.yml @@ -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 @@ -40,7 +44,7 @@ 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 }}" notify: diff --git a/.github/workflows/build-push-teku.yml b/.github/workflows/build-push-teku.yml index 007dc4f..0159ea3 100644 --- a/.github/workflows/build-push-teku.yml +++ b/.github/workflows/build-push-teku.yml @@ -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 @@ -40,7 +44,7 @@ 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 }}" notify: diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml index 3271c16..dc41477 100644 --- a/.github/workflows/scheduled.yml +++ b/.github/workflows/scheduled.yml @@ -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 @@ -116,6 +117,7 @@ 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 }}" notify: