| | |
| | | run: | |
| | | sudo apt-get update |
| | | sudo apt-get install -y rpm |
| | | - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 |
| | | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| | | with: |
| | | fetch-depth: 0 |
| | | submodules: recursive |
| | | - name: Set up Java for publishing to Maven Central Repository OSS |
| | | uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 |
| | | uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1 |
| | | with: |
| | | java-version: ${{ github.event.workflow_run.head_branch == 'sustaining/4.10.x' && '8' || '11'}} |
| | | distribution: 'temurin' |
| | |
| | | server-username: MAVEN_USERNAME |
| | | server-password: MAVEN_PASSWORD |
| | | - name: Cache Maven packages |
| | | uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 |
| | | uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 |
| | | with: |
| | | path: ~/.m2/repository |
| | | key: ${{ runner.os }}-m2-repository-${{ hashFiles('**/pom.xml') }} |
| | |
| | | # 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@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2 |
| | | uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3 |
| | | with: |
| | | name: ${{ github.event.inputs.releaseVersion }} |
| | | tag_name: ${{ github.event.inputs.releaseVersion }} |
| | |
| | | target/checkout/opendj-doc-generated-ref/target/*.zip |
| | | target/checkout/opendj-dsml-servlet/target/*.war |
| | | target/checkout/opendj-rest2ldap-servlet/target/*.war |
| | | - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 |
| | | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| | | continue-on-error: true |
| | | with: |
| | | repository: ${{ github.repository }}.wiki |
| | |
| | | git push --quiet --force |
| | | git push --quiet --force origin ${{ github.event.inputs.releaseVersion }} |
| | | |
| | | - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 |
| | | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| | | continue-on-error: true |
| | | with: |
| | | repository: OpenIdentityPlatform/doc.openidentityplatform.org |
| | |
| | | needs: |
| | | - release-maven |
| | | steps: |
| | | - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 |
| | | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| | | with: |
| | | ref: ${{ github.event.inputs.releaseVersion }} |
| | | submodules: recursive |
| | | - name: Set up Java |
| | | uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 |
| | | uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1 |
| | | with: |
| | | java-version: '11' |
| | | distribution: 'temurin' |
| | |
| | | # and saving that under the key build-maven restores from would seed every later |
| | | # Windows build with it. |
| | | - name: Cache Maven packages |
| | | uses: actions/cache/restore@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 |
| | | uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 |
| | | with: |
| | | path: ~/.m2/repository |
| | | key: ${{ runner.os }}-m2-repository-${{ hashFiles('**/pom.xml') }} |
| | |
| | | # 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@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2 |
| | | uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3 |
| | | with: |
| | | tag_name: ${{ github.event.inputs.releaseVersion }} |
| | | fail_on_unmatched_files: true |
| | |
| | | contents: read |
| | | packages: write |
| | | steps: |
| | | - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 |
| | | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| | | with: |
| | | ref: ${{ github.event.inputs.releaseVersion }} |
| | | fetch-depth: 1 |
| | |
| | | type=raw,value=latest |
| | | type=raw,value=${{ github.event.inputs.releaseVersion }} |
| | | - name: Set up QEMU |
| | | uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0 |
| | | uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0 |
| | | - name: Set up Docker Buildx |
| | | uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0 |
| | | uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 |
| | | - name: Login to DockerHub |
| | | uses: docker/login-action@371161bbe7024a29a25c5e19bfcbc0804fe9ad2c # v4.5.2 |
| | | uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 |
| | | with: |
| | | username: ${{ secrets.DOCKER_USERNAME }} |
| | | password: ${{ secrets.DOCKER_PASSWORD }} |
| | | - name: Login to GHCR |
| | | uses: docker/login-action@371161bbe7024a29a25c5e19bfcbc0804fe9ad2c # v4.5.2 |
| | | uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 |
| | | with: |
| | | registry: ghcr.io |
| | | username: ${{ github.repository_owner }} |
| | | password: ${{ secrets.GITHUB_TOKEN }} |
| | | - name: Build and push image |
| | | uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0 |
| | | uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0 |
| | | continue-on-error: true |
| | | with: |
| | | context: ./opendj-packages/opendj-docker |
| | |
| | | contents: read |
| | | packages: write |
| | | steps: |
| | | - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 |
| | | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| | | with: |
| | | ref: ${{ github.event.inputs.releaseVersion }} |
| | | fetch-depth: 1 |
| | |
| | | type=raw,value=alpine |
| | | type=raw,value=${{ github.event.inputs.releaseVersion }}-alpine |
| | | - name: Set up QEMU |
| | | uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0 |
| | | uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0 |
| | | - name: Set up Docker Buildx |
| | | uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0 |
| | | uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 |
| | | - name: Login to DockerHub |
| | | uses: docker/login-action@371161bbe7024a29a25c5e19bfcbc0804fe9ad2c # v4.5.2 |
| | | uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 |
| | | with: |
| | | username: ${{ secrets.DOCKER_USERNAME }} |
| | | password: ${{ secrets.DOCKER_PASSWORD }} |
| | | - name: Login to GHCR |
| | | uses: docker/login-action@371161bbe7024a29a25c5e19bfcbc0804fe9ad2c # v4.5.2 |
| | | uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 |
| | | with: |
| | | registry: ghcr.io |
| | | username: ${{ github.repository_owner }} |
| | | password: ${{ secrets.GITHUB_TOKEN }} |
| | | - name: Build and push image |
| | | continue-on-error: true |
| | | uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0 |
| | | uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0 |
| | | with: |
| | | context: ./opendj-packages/opendj-docker |
| | | file: ./opendj-packages/opendj-docker/Dockerfile-alpine |