matrix-docker-test #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: matrix-docker-test | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Besu version' | |
required: true | |
verify-latest-version: | |
description: 'Whether to check the version of the latest docker image' | |
required: false | |
type: boolean | |
default: true | |
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 }}-amd64 | |
platform: '' | |
runner: ubuntu-latest | |
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/scripts/BesuContainerCheck.sh | |
env: | |
TAG: ${{ matrix.combination.tag }} | |
VERSION: ${{ inputs.version}} | |
- name: Stop container | |
run: docker stop ${{ env.CONTAINER_NAME }} |