From 9f34f4e79857afb178b7469ed50ded14ee481d12 Mon Sep 17 00:00:00 2001 From: Shailesh Patil Date: Fri, 7 Jul 2023 11:34:54 +0100 Subject: [PATCH] fix: mediator docker-compose image repo and version (#39) * fix: the image repo and version in docker-compose Co-authored-by: Shailesh Patil Signed-off-by: Shailesh Patil --- .github/workflows/integration-tests.yml | 5 ++--- docker-compose.yml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 13a7e91d..185bdfcd 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -49,7 +49,7 @@ jobs: - name: Install Compose uses: ndeloof/install-compose-action@v0.0.1 with: - version: v2.12.2 # defaults to 'latest' + version: v2.19.1 # defaults to 'latest' legacy: true # will also install in PATH as `docker-compose` - name: Build local version of Mediator Agent @@ -61,8 +61,8 @@ jobs: cd "${MEDIATOR_PATH}" || exit 129 NODE_OPTIONS=--openssl-legacy-provider sbt -mem 2048 -J-Xmx5120m docker:publishLocal MEDIATOR_VERSION=$(cut version.sbt -d '=' -f2 | tr -d '" ') + echo "MEDIATOR_VERSION=${MEDIATOR_VERSION}" >> $GITHUB_ENV echo ${MEDIATOR_VERSION} - - name: Start Mediator uses: isbang/compose-action@v1.4.1 with: @@ -70,7 +70,6 @@ jobs: compose-flags: "" up-flags: "--wait" down-flags: "--volumes" - - name: Run e2e tests env: GITHUB_ACTOR: ${{ secrets.ATALA_GITHUB_ACTOR }} diff --git a/docker-compose.yml b/docker-compose.yml index c4aa4c41..91f0ddd6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,7 @@ services: # interval: 10s # start_period: 30s atalaprism-mediator: - image: ghcr.io/input-output-hk/mediator:0.1.1-SNAPSHOT + image: ghcr.io/input-output-hk/mediator:${MEDIATOR_VERSION:-0.2.0-SNAPSHOT} ports: - 8080:8080 network_mode: host #hash on mac remove this the default is bridge we can use host.docker.internal