| | |
| | | fetch-depth: 0 |
| | | submodules: recursive |
| | | - name: Set up Java for publishing to Maven Central Repository OSS |
| | | uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 |
| | | uses: actions/setup-java@77dd5b2ce225ea11469928ac317850245a74ae78 # v6.2.0 |
| | | with: |
| | | java-version: ${{ github.event.workflow_run.head_branch == 'sustaining/4.10.x' && '8' || '11'}} |
| | | distribution: 'temurin' |
| | |
| | | # going thanks to continue-on-error, but the loss is visible). |
| | | if-no-files-found: error |
| | | - name: Release on GitHub |
| | | uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3 |
| | | uses: softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3.0.4 |
| | | with: |
| | | name: ${{ github.event.inputs.releaseVersion }} |
| | | tag_name: ${{ github.event.inputs.releaseVersion }} |
| | |
| | | ref: ${{ github.event.inputs.releaseVersion }} |
| | | submodules: recursive |
| | | - name: Set up Java |
| | | uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 |
| | | uses: actions/setup-java@77dd5b2ce225ea11469928ac317850245a74ae78 # v6.2.0 |
| | | with: |
| | | java-version: '11' |
| | | distribution: 'temurin' |
| | |
| | | # symptom - the job's continue-on-error swallows everything else. |
| | | run: mvn --batch-mode --errors -DskipTests package -pl :opendj-msi-standard -Pdistribution-windows-msi --file pom.xml |
| | | - name: Attach the MSI to the GitHub release |
| | | uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3 |
| | | uses: softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3.0.4 |
| | | with: |
| | | tag_name: ${{ github.event.inputs.releaseVersion }} |
| | | fail_on_unmatched_files: true |
| | |
| | | - name: Set up Docker Buildx |
| | | uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 |
| | | - name: Login to DockerHub |
| | | uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0 |
| | | uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0 |
| | | with: |
| | | username: ${{ secrets.DOCKER_USERNAME }} |
| | | password: ${{ secrets.DOCKER_PASSWORD }} |
| | | - name: Login to GHCR |
| | | uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0 |
| | | uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0 |
| | | with: |
| | | registry: ghcr.io |
| | | username: ${{ github.repository_owner }} |
| | |
| | | - name: Set up Docker Buildx |
| | | uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 |
| | | - name: Login to DockerHub |
| | | uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0 |
| | | uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0 |
| | | with: |
| | | username: ${{ secrets.DOCKER_USERNAME }} |
| | | password: ${{ secrets.DOCKER_PASSWORD }} |
| | | - name: Login to GHCR |
| | | uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0 |
| | | uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0 |
| | | with: |
| | | registry: ghcr.io |
| | | username: ${{ github.repository_owner }} |