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

maximthomas
25.15.2022 1275ea6325a5f7b77e479cf086d8f468824923dd
add docker test
1 files modified
13 ■■■■■ changed files
.github/workflows/build.yml 13 ●●●●● patch | view | raw | blame | history
.github/workflows/build.yml
@@ -52,6 +52,19 @@
         git fetch -t; export git_version_last="$(git describe --abbrev=0 --tags)" ; echo "last release: $git_version_last"
         docker build opendj-packages/opendj-docker -f opendj-packages/opendj-docker/Dockerfile -t ${GITHUB_REPOSITORY,,}:$git_version_last --build-arg VERSION=$git_version_last
         docker build opendj-packages/opendj-docker -f opendj-packages/opendj-docker/Dockerfile-alpine -t ${GITHUB_REPOSITORY,,}:$git_version_last-alpine --build-arg VERSION=$git_version_last
    - name: Docker test
        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-interval=10s \
          --health-retries=10 \
          --health-timeout=10s \
          openidentityplatform/opendj
          timeout 30s bash -c 'until docker inspect --format="{{json .State.Health.Status}}" opendj_1 | grep -q \"healthy\"; do sleep 10; done';
    - name: Upload artifacts OpenDJ Server
      uses: actions/upload-artifact@v3
      with: