| | |
| | | sudo apt install --install-recommends winehq-stable |
| | | sudo mkdir -p /opt/wine/mono && sudo wget "https://dl.winehq.org/wine/wine-mono/8.0.0/wine-mono-8.0.0-x86.tar.xz" -P /opt/wine/mono && sudo tar -xf /opt/wine/mono/wine-mono-8.0.0-x86.tar.xz -C /opt/wine/mono && sudo rm /opt/wine/mono/wine-mono-8.0.0-x86.tar.xz |
| | | wine --version |
| | | - uses: actions/checkout@v3 |
| | | - uses: actions/checkout@v4 |
| | | with: |
| | | fetch-depth: 0 |
| | | submodules: recursive |
| | | - name: Java ${{ matrix.Java }} (${{ matrix.os }}) |
| | | uses: actions/setup-java@v3 |
| | | uses: actions/setup-java@v4 |
| | | with: |
| | | java-version: ${{ matrix.java }} |
| | | distribution: 'temurin' |
| | | distribution: 'zulu' |
| | | - name: Cache Maven packages |
| | | uses: actions/cache@v3 |
| | | uses: actions/cache@v4 |
| | | with: |
| | | path: ~/.m2/repository |
| | | key: ${{ runner.os }}-m2-repository-${{ hashFiles('**/pom.xml') }} |
| | |
| | | opendj-server-legacy\target\package\opendj\bat\ldapsearch.bat --hostname localhost --port 1636 --bindDN "cn=Directory Manager" --bindPassword password --useSsl --trustAll --baseDN "dc=example,dc=com" --searchScope sub "(uid=user.*)" dn | find /c '"dn:"' | findstr "5000" |
| | | opendj-server-legacy\target\package\opendj\bat\stop-ds.bat |
| | | - name: Upload artifacts OpenDJ Server |
| | | uses: actions/upload-artifact@v3 |
| | | uses: actions/upload-artifact@v4 |
| | | with: |
| | | name: ${{ matrix.os }}-${{ matrix.java }} |
| | | retention-days: 5 |
| | |
| | | ports: |
| | | - 5000:5000 |
| | | steps: |
| | | - uses: actions/checkout@v3 |
| | | - uses: actions/checkout@v4 |
| | | with: |
| | | fetch-depth: 0 |
| | | submodules: recursive |
| | | - name: Get latest release version |
| | | shell: bash |
| | | run: | |
| | | git fetch -t; export git_version_last="$(git describe --abbrev=0 --tags)" ; echo "last release: $git_version_last" |
| | | export git_version_last="$(curl -i -o - --silent https://api.github.com/repos/OpenIdentityPlatform/OpenDJ/releases/latest | grep -m1 "\"name\"" | cut -d\" -f4)" ; echo "last release: $git_version_last" |
| | | echo "release_version=$git_version_last" >> $GITHUB_ENV |
| | | - name: Docker meta |
| | | id: meta |
| | | uses: docker/metadata-action@v4 |
| | | uses: docker/metadata-action@v5 |
| | | with: |
| | | images: | |
| | | localhost:5000/${{ github.repository }} |
| | | tags: | |
| | | type=raw,value=${{ env.release_version }} |
| | | - name: Set up QEMU |
| | | uses: docker/setup-qemu-action@v2 |
| | | uses: docker/setup-qemu-action@v3 |
| | | - name: Set up Docker Buildx |
| | | uses: docker/setup-buildx-action@v2 |
| | | uses: docker/setup-buildx-action@v3 |
| | | with: |
| | | driver-opts: network=host |
| | | - name: Build image (default) |
| | | uses: docker/build-push-action@v3 |
| | | uses: docker/build-push-action@v5 |
| | | continue-on-error: true |
| | | with: |
| | | context: ./opendj-packages/opendj-docker |
| | |
| | | ports: |
| | | - 5000:5000 |
| | | steps: |
| | | - uses: actions/checkout@v3 |
| | | - uses: actions/checkout@v4 |
| | | with: |
| | | fetch-depth: 0 |
| | | submodules: recursive |
| | | - name: Get latest release version |
| | | shell: bash |
| | | run: | |
| | | git fetch -t; export git_version_last="$(git describe --abbrev=0 --tags)" ; echo "last release: $git_version_last" |
| | | export git_version_last="$(curl -i -o - --silent https://api.github.com/repos/OpenIdentityPlatform/OpenDJ/releases/latest | grep -m1 "\"name\"" | cut -d\" -f4)" ; echo "last release: $git_version_last" |
| | | echo "release_version=$git_version_last" >> $GITHUB_ENV |
| | | - name: Docker meta |
| | | id: meta |
| | | uses: docker/metadata-action@v4 |
| | | uses: docker/metadata-action@v5 |
| | | with: |
| | | images: | |
| | | localhost:5000/${{ github.repository }} |
| | |
| | | type=raw,value=alpine |
| | | type=raw,value=${{ env.release_version }}-alpine |
| | | - name: Set up QEMU |
| | | uses: docker/setup-qemu-action@v2 |
| | | uses: docker/setup-qemu-action@v3 |
| | | - name: Set up Docker Buildx |
| | | uses: docker/setup-buildx-action@v2 |
| | | uses: docker/setup-buildx-action@v3 |
| | | with: |
| | | driver-opts: network=host |
| | | - name: Build image |
| | | continue-on-error: true |
| | | uses: docker/build-push-action@v3 |
| | | uses: docker/build-push-action@v5 |
| | | with: |
| | | context: ./opendj-packages/opendj-docker |
| | | file: ./opendj-packages/opendj-docker/Dockerfile-alpine |