Skip to content

Build besu docker image #68

Build besu docker image

Build besu docker image #68

Workflow file for this run

name: Build besu docker image
on:
workflow_dispatch:
inputs:
repository:
description: The source besu repository to build from
default: hyperledger/besu
type: string
required: true
ref:
description: The branch, tag or SHA to checkout and build from
default: main
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:
platforms: ${{ steps.setup.outputs.platforms }}
steps:
- uses: actions/checkout@v4
- name: Prepare Matrix
id: setup
uses: ./.github/actions/prepare
with:
client: 'besu'
deploy:
needs:
- prepare
runs-on: ${{ platforms.runner }}

Check failure on line 36 in .github/workflows/build-push-besu.yml

View workflow run for this annotation

GitHub Actions / Build besu docker image

Invalid workflow file

The workflow is not valid. .github/workflows/build-push-besu.yml (Line: 36, Col: 14): Unrecognized named-value: 'platforms'. Located at position 1 within expression: platforms.runner .github/workflows/build-push-besu.yml (Line: 38, Col: 7): Unexpected value 'platform'
strategy:
platform:
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 }}
build_script: ./besu/build.sh
target_tag: ${{ inputs.docker_tag || inputs.ref }}-${{ platform.slug }}
target_repository: ethpandaops/besu
platform: ${{ platform.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@v4
- uses: ./.github/actions/manifest
with:
source_repository: ${{ inputs.repository }}
source_ref: ${{ inputs.ref }}
target_tag: ${{ inputs.docker_tag || inputs.ref }}
target_repository: ethpandaops/besu
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 }}