Use corresponding tag image for quorum in atests or fallback to latest stable image
@@ -201,8 +201,21 @@ jobs:
push: false
dockerfile: .github/workflows/noBuild.Dockerfile
build_args: JAR_FILE=tessera-dist/tessera-app/build/libs/tessera-app-*-app.jar
+ - name: Get version of Quorum to use
+ id: quorumver
+ run: |
+ tagversion=`cat version.txt | cut -d'-' -f1`
+ echo "$tagversion" > version.txt
+ VERSION=${tagversion%.*}
+ RESP_CODE=$(docker manifest inspect quorumengineering/quorum:$VERSION> /dev/null ; echo $?)
+ if [ ! $RESP_CODE -eq 0 ]; then
+ echo "no quorum image found for $VERSION"
+ VERSION=latest
+ fi
+ echo "using version $VERSION"
+ echo ::set-output name=version::$VERSION
- run:
- docker run --rm --network host -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/acctests:/tmp/acctests -e TF_VAR_quorum_docker_image='{name=\"quorumengineering/quorum:latest\"}' quorumengineering/acctests:latest test -Pauto -Dtags="!async && (basic || basic-istanbul || networks/typical::istanbul)" -Dauto.outputDir=/tmp/acctests -Dnetwork.forceDestroy=true
+ docker run --rm --network host -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/acctests:/tmp/acctests -e TF_VAR_quorum_docker_image='{name="quorumengineering/quorum:${{ steps.quorumver.outputs.version }}",local=false}' quorumengineering/acctests:latest test -Pauto -Dtags="!async && (basic || basic-istanbul || networks/typical::istanbul)" -Dauto.outputDir=/tmp/acctests -Dnetwork.forceDestroy=true
vaultTests:
runs-on: ubuntu-latest
