Skip to content

Commit

Permalink
Merge branch 'master' into feat/prysm-bazel-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
skylenet authored May 16, 2024
2 parents 2021c41 + c9e2eb7 commit 10241bb
Showing 1 changed file with 88 additions and 1 deletion.
89 changes: 88 additions & 1 deletion .github/workflows/build-push-nimbus-eth2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build nimbus-eth2 docker image
on:
workflow_dispatch:
inputs:
repository:
repository:
description: The source nimbus-eth2 repository to build from
default: status-im/nimbus-eth2
type: string
Expand Down Expand Up @@ -52,6 +52,32 @@ jobs:
target_dockerfile: ./nimbus-eth2/Dockerfile.beacon
platform: ${{ matrix.platform }}

DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
MACOS_PASSWORD: "${{ secrets.MACOS_PASSWORD }}"
GOPROXY: "${{ vars.GOPROXY }}"
deploy-beacon-minimal:
needs:
- prepare
runs-on: ${{ matrix.runner }}
continue-on-error: true
strategy:
matrix:
include: ${{fromJson(needs.prepare.outputs.platforms)}}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-deps
with:
repository: ${{ inputs.repository }}
- uses: ./.github/actions/deploy
with:
source_repository: ${{ inputs.repository }}
source_ref: ${{ inputs.ref }}
target_tag: ${{ inputs.docker_tag || inputs.ref }}-minimal-${{ matrix.slug }}
target_repository: ethpandaops/nimbus-eth2
target_dockerfile: ./nimbus-eth2/Dockerfile.beacon-minimal
platform: ${{ matrix.platform }}

DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
MACOS_PASSWORD: "${{ secrets.MACOS_PASSWORD }}"
Expand All @@ -75,6 +101,29 @@ jobs:
target_dockerfile: ./nimbus-eth2/Dockerfile.validator
platform: ${{ matrix.platform }}

DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
MACOS_PASSWORD: "${{ secrets.MACOS_PASSWORD }}"
GOPROXY: "${{ vars.GOPROXY }}"
deploy-validator-minimal:
needs:
- prepare
runs-on: ${{ matrix.runner }}
continue-on-error: true
strategy:
matrix:
include: ${{fromJson(needs.prepare.outputs.platforms)}}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/deploy
with:
source_repository: ${{ inputs.repository }}
source_ref: ${{ inputs.ref }}
target_tag: ${{ inputs.docker_tag || inputs.ref }}-minimal-${{ matrix.slug }}
target_repository: ethpandaops/nimbus-validator-client
target_dockerfile: ./nimbus-eth2/Dockerfile.validator-minimal
platform: ${{ matrix.platform }}

DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
MACOS_PASSWORD: "${{ secrets.MACOS_PASSWORD }}"
Expand All @@ -94,6 +143,23 @@ jobs:
target_repository: ethpandaops/nimbus-eth2
platforms: ${{ needs.prepare.outputs.platforms }}

DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
manifest-beacon-minimal:
needs:
- prepare
- deploy-beacon-minimal
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/manifest
with:
source_repository: ${{ inputs.repository }}
source_ref: ${{ inputs.ref }}
target_tag: ${{ inputs.docker_tag || inputs.ref }}-minimal
target_repository: ethpandaops/nimbus-eth2
platforms: ${{ needs.prepare.outputs.platforms }}

DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
manifest-validator:
Expand All @@ -111,6 +177,23 @@ jobs:
target_repository: ethpandaops/nimbus-validator-client
platforms: ${{ needs.prepare.outputs.platforms }}

DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
manifest-validator-minimal:
needs:
- prepare
- deploy-validator-minimal
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/manifest
with:
source_repository: ${{ inputs.repository }}
source_ref: ${{ inputs.ref }}
target_tag: ${{ inputs.docker_tag || inputs.ref }}-minimal
target_repository: ethpandaops/nimbus-validator-client
platforms: ${{ needs.prepare.outputs.platforms }}

DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
notify:
Expand All @@ -119,9 +202,13 @@ jobs:
needs:
- prepare
- deploy-beacon
- deploy-beacon-minimal
- deploy-validator
- deploy-validator-minimal
- manifest-beacon
- manifest-beacon-minimal
- manifest-validator
- manifest-validator-minimal
if: failure()
steps:
- name: Notify
Expand Down

0 comments on commit 10241bb

Please sign in to comment.