From 9128e949215ab4e480e910ab188c8602441366e1 Mon Sep 17 00:00:00 2001
From: maximthomas <maxim.thomas@gmail.com>
Date: Mon, 25 Apr 2022 09:37:49 +0000
Subject: [PATCH] add docker stop command

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

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 0d242ed..3c7dc45 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -56,9 +56,10 @@
       if: runner.os == 'Linux'
       shell: bash
       run:   |
-          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
+         echo '${GITHUB_REPOSITORY,,}:$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
     - name: Upload artifacts OpenDJ Server
       uses: actions/upload-artifact@v3
       with:

--
Gitblit v1.10.0