Skip to content

Commit

Permalink
Merge pull request #168 from ethpandaops/skylenet/build-push-prysm-mi…
Browse files Browse the repository at this point in the history
…nimal-support

build-push-prysm: add minimal preset build
  • Loading branch information
skylenet authored May 14, 2024
2 parents 9c687ab + ddfcf04 commit b7931af
Showing 1 changed file with 57 additions and 1 deletion.
58 changes: 57 additions & 1 deletion .github/workflows/build-push-prysm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build prysm docker image
on:
workflow_dispatch:
inputs:
repository:
repository:
description: The source prysm repository to build from
default: prysmaticlabs/prysm
type: string
Expand Down Expand Up @@ -43,6 +43,22 @@ jobs:
- uses: ./.github/actions/install-deps
with:
repository: ${{ inputs.repository }}
# Build minimal preset
- uses: ./.github/actions/deploy
with:
source_repository: ${{ inputs.repository }}
source_ref: ${{ inputs.ref }}
build_script: ./prysm/build_beacon_minimal.sh
target_tag: ${{ inputs.docker_tag || inputs.ref }}-${{ matrix.slug }}-minimal
target_repository: ethpandaops/prysm-beacon-chain
target_dockerfile: ./prysm/Dockerfile.beacon
platform: ${{ matrix.platform }}

DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
MACOS_PASSWORD: "${{ secrets.MACOS_PASSWORD }}"
GOPROXY: "${{ vars.GOPROXY }}"
# Build default preset
- uses: ./.github/actions/deploy
with:
source_repository: ${{ inputs.repository }}
Expand Down Expand Up @@ -70,6 +86,22 @@ jobs:
- uses: ./.github/actions/install-deps
with:
repository: ${{ inputs.repository }}
# Build minimal preset
- uses: ./.github/actions/deploy
with:
source_repository: ${{ inputs.repository }}
source_ref: ${{ inputs.ref }}
build_script: ./prysm/build_validator_minimal.sh
target_tag: ${{ inputs.docker_tag || inputs.ref }}-${{ matrix.slug }}-minimal
target_repository: ethpandaops/prysm-validator
target_dockerfile: ./prysm/Dockerfile.validator
platform: ${{ matrix.platform }}

DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
MACOS_PASSWORD: "${{ secrets.MACOS_PASSWORD }}"
GOPROXY: "${{ vars.GOPROXY }}"
# Build default preset
- uses: ./.github/actions/deploy
with:
source_repository: ${{ inputs.repository }}
Expand All @@ -91,6 +123,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Minimal preset
- uses: ./.github/actions/manifest
with:
source_repository: ${{ inputs.repository }}
source_ref: ${{ inputs.ref }}
target_tag: ${{ inputs.docker_tag || inputs.ref }}-minimal
target_repository: ethpandaops/prysm-beacon-chain
platforms: ${{ needs.prepare.outputs.platforms }}

DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
# Default preset
- uses: ./.github/actions/manifest
with:
source_repository: ${{ inputs.repository }}
Expand All @@ -108,6 +152,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Minimal preset
- uses: ./.github/actions/manifest
with:
source_repository: ${{ inputs.repository }}
source_ref: ${{ inputs.ref }}
target_tag: ${{ inputs.docker_tag || inputs.ref }}-minimal
target_repository: ethpandaops/prysm-validator
platforms: ${{ needs.prepare.outputs.platforms }}

DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
# Default preset
- uses: ./.github/actions/manifest
with:
source_repository: ${{ inputs.repository }}
Expand Down

0 comments on commit b7931af

Please sign in to comment.