From 32d446a9723ff1da78af8340a1b19b832bb2c174 Mon Sep 17 00:00:00 2001
From: maximthomas <maxim.thomas@gmail.com>
Date: Mon, 25 Apr 2022 09:59:12 +0000
Subject: [PATCH] add git docker version to docker test step

---
 .github/workflows/build.yml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 3c7dc45..d789759 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -56,7 +56,7 @@
       if: runner.os == 'Linux'
       shell: bash
       run:   |
-         echo '${GITHUB_REPOSITORY,,}:$git_version_last'
+         git fetch -t; export git_version_last="$(git describe --abbrev=0 --tags)" ; echo "last release: $git_version_last"
          docker run --rm -it -d --name=opendj_1  --health-cmd='/opt/opendj/bin/ldapsearch --hostname localhost --port 1636 --bindDN "cn=Directory Manager" --bindPassword password --useSsl --trustAll --baseDN "" --searchScope base "(objectClass=*)" 1.1 || /opt/opendj/bin/stop-ds || exit 1'  --health-retries=10 --health-timeout=10s '${GITHUB_REPOSITORY,,}:$git_version_last'
          timeout 30s bash -c 'until docker inspect --format="{{json .State.Health.Status}}" opendj_1 | grep -q \"healthy\"; do sleep 10; done'
          docker stop opendj_1 || true

--
Gitblit v1.10.0