Skip to content

Commit

Permalink
Merge pull request #169 from ethpandaops/skylenet/build-push-grandine…
Browse files Browse the repository at this point in the history
…-minimal-support

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

DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
MACOS_PASSWORD: "${{ secrets.MACOS_PASSWORD }}"
GOPROXY: "${{ vars.GOPROXY }}"
# Default preset
- uses: ./.github/actions/deploy
with:
source_repository: ${{ inputs.repository }}
Expand All @@ -63,6 +79,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/grandine
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 9cf7637

Please sign in to comment.