mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

maximthomas
25.49.2022 0dc4780ef5cb381f5794d03766426fc2a789e723
add docker stop command
1 files modified
5 ■■■■■ changed files
.github/workflows/build.yml 5 ●●●●● patch | view | raw | blame | history
.github/workflows/build.yml
@@ -56,8 +56,9 @@
      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,,}
          timeout 30s bash -c 'until docker inspect --format="{{json .State.Health.Status}}" opendj_1 | grep -q \"healthy\"; do sleep 10; done';
          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
    - name: Upload artifacts OpenDJ Server
      uses: actions/upload-artifact@v3
      with: