mirror of
https://github.com/vacp2p/status-linea-besu.git
synced 2026-01-09 22:07:59 -05:00
Container verification step in release process automated with the container verify GitHub workflow. New workflow is triggered at the end of the release workflow which will check the release container images starts successfully. Verification test only checks container starts and reach the Ethereum main loop Signed-off-by: Chaminda Divitotawela <cdivitotawela@gmail.com>
58 lines
1.6 KiB
YAML
58 lines
1.6 KiB
YAML
name: container verify
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: 'Besu version'
|
|
required: true
|
|
verify-latest-version:
|
|
description: 'Check latest container version'
|
|
required: false
|
|
type: choice
|
|
default: "true"
|
|
options:
|
|
- "true"
|
|
- "false"
|
|
|
|
jobs:
|
|
verify:
|
|
timeout-minutes: 4
|
|
strategy:
|
|
matrix:
|
|
combination:
|
|
- tag: ${{ inputs.version }}
|
|
platform: ''
|
|
runner: ubuntu-latest
|
|
- tag: ${{ inputs.version }}-amd64
|
|
platform: 'linux/amd64'
|
|
runner: ubuntu-latest
|
|
- tag: latest
|
|
platform: ''
|
|
runner: ubuntu-latest
|
|
- tag: ${{ inputs.version }}-arm64
|
|
platform: ''
|
|
runner: besu-arm64
|
|
runs-on: ${{ matrix.combination.runner }}
|
|
env:
|
|
CONTAINER_NAME: besu-check
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
|
|
|
- name: Start container
|
|
run: |
|
|
PLATFORM_OPT=""
|
|
[[ x${{ matrix.combination.platform }} != 'x' ]] && PLATFORM_OPT="--platform ${{ matrix.combination.platform }}"
|
|
docker run -d $PLATFORM_OPT --name ${{ env.CONTAINER_NAME }} hyperledger/besu:${{ matrix.combination.tag }}
|
|
|
|
- name: Verify besu container
|
|
run: bash .github/workflows/BesuContainerVerify.sh
|
|
env:
|
|
TAG: ${{ matrix.combination.tag }}
|
|
VERSION: ${{ inputs.version }}
|
|
CHECK_LATEST: ${{ inputs.verify-latest-version }}
|
|
|
|
- name: Stop container
|
|
run: docker stop ${{ env.CONTAINER_NAME }}
|