Skip to content

Commit

Permalink
Merge pull request #94 from ethpandaops/more-tools
Browse files Browse the repository at this point in the history
adds beacon-metrics-gazer and dora-the-explorer
  • Loading branch information
parithosh authored Sep 20, 2023
2 parents f1f7888 + 5096e92 commit bbe83c1
Show file tree
Hide file tree
Showing 5 changed files with 192 additions and 0 deletions.
87 changes: 87 additions & 0 deletions .github/workflows/build-push-beacon-metrics-gazer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: Build beacon-metrics-gazer image

on:
workflow_dispatch:
inputs:
repository:
description: The source dora-the-explorer repository to build from
default: dapplion/beacon-metrics-gazer
type: string
required: true
ref:
description: The branch, tag or SHA to checkout and build from
default: master
type: string
required: true
docker_tag:
description: Override target docker tag (defaults to the above source ref if left blank)
type: string
required: false

jobs:
prepare:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.setup.outputs.matrix }}
platforms: ${{ steps.setup.outputs.platforms }}
steps:
- uses: actions/checkout@v3
- name: Prepare Matrix
id: setup
uses: ./.github/actions/prepare
with:
client: 'beacon-metrics-gazer'
deploy:
needs:
- prepare
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include: ${{fromJson(needs.prepare.outputs.matrix)}}
steps:
- uses: actions/checkout@v3
- 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 }}-${{ matrix.slug }}
target_repository: ethpandaops/beacon-metrics-gazer
platform: ${{ matrix.platform }}

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

DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
notify:
name: Discord Notification
runs-on: ubuntu-latest
needs:
- prepare
- deploy
- manifest
if: failure()
steps:
- name: Notify
uses: nobrayner/discord-webhook@v1
with:
github-token: ${{ secrets.github_token }}
discord-webhook: ${{ secrets.DISCORD_WEBHOOK }}
87 changes: 87 additions & 0 deletions .github/workflows/build-push-dora-the-explorer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: Build dora-the-explorer image

on:
workflow_dispatch:
inputs:
repository:
description: The source dora-the-explorer repository to build from
default: pk910/light-beaconchain-explorer
type: string
required: true
ref:
description: The branch, tag or SHA to checkout and build from
default: master
type: string
required: true
docker_tag:
description: Override target docker tag (defaults to the above source ref if left blank)
type: string
required: false

jobs:
prepare:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.setup.outputs.matrix }}
platforms: ${{ steps.setup.outputs.platforms }}
steps:
- uses: actions/checkout@v3
- name: Prepare Matrix
id: setup
uses: ./.github/actions/prepare
with:
client: 'dora-the-explorer'
deploy:
needs:
- prepare
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include: ${{fromJson(needs.prepare.outputs.matrix)}}
steps:
- uses: actions/checkout@v3
- 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 }}-${{ matrix.slug }}
target_repository: ethpandaops/dora-the-explorer
platform: ${{ matrix.platform }}

DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
MACOS_PASSWORD: "${{ secrets.MACOS_PASSWORD }}"
manifest:
needs:
- prepare
- deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/manifest
with:
source_repository: ${{ inputs.repository }}
source_ref: ${{ inputs.ref }}
target_tag: ${{ inputs.docker_tag || inputs.ref }}
target_repository: ethpandaops/dora-the-explorer
platforms: ${{ needs.prepare.outputs.platforms }}

DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
notify:
name: Discord Notification
runs-on: ubuntu-latest
needs:
- prepare
- deploy
- manifest
if: failure()
steps:
- name: Notify
uses: nobrayner/discord-webhook@v1
with:
github-token: ${{ secrets.github_token }}
discord-webhook: ${{ secrets.DISCORD_WEBHOOK }}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ Run the *Build **tooling*** workflow;
- [Build tx-fuzz](https://github.com/ethpandaops/eth-client-docker-image-builder/actions/workflows/build-push-tx-fuzz.yaml) [[source](https://github.com/MariusVanDerWijden/tx-fuzz)]
- [Build consesnus-monitor](https://github.com/ethpandaops/eth-client-docker-image-builder/blob/master/.github/workflows/build-push-consensus-monitor.yml) [[source]](https://github.com/ralexstokes/ethereum_consensus_monitor)
- [Build execution-monitor](https://github.com/ethpandaops/eth-client-docker-image-builder/blob/master/.github/workflows/build-push-execution-monitor.yml) [[source]](https://github.com/ethereum/nodemonitor)
- [Build dora-the-explorer](https://github.com/ethpandaops/eth-client-docker-image-builder/blob/master/.github/workflows/build-push-dora-the-explorer.yml) [[source]](https://github.com/pk910/light-beaconchain-explorer)
- [Build beacon-metrics-gazer](https://github.com/ethpandaops/eth-client-docker-image-builder/blob/master/.github/workflows/build-push-beacon-metrics-gazer.yml) [[source]](https://github.com/dapplion/beacon-metrics-gazer)


## Adding a new image to build on schedule

Expand Down
9 changes: 9 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,3 +222,12 @@
target:
tag: master
repository: ethpandaops/tx-fuzz
#############
# dora-the-explorer #
#############
- source:
repository: pk910/light-beaconchain-explorer
ref: master
target:
tag: master
repository: ethpandaops/dora-the-explorer
6 changes: 6 additions & 0 deletions platforms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,9 @@ consensus-monitor:
execution-monitor:
- linux/amd64
- linux/arm64
dora-the-explorer:
- linux/amd64
- linux/arm64
beacon-metrics-gazer:
- linux/amd64
- linux/arm64

0 comments on commit bbe83c1

Please sign in to comment.