| | |
| | | name: Release Maven |
| | | name: Release |
| | | |
| | | on: |
| | | workflow_dispatch: |
| | |
| | | required: true |
| | | default: "X.Y.Z-SNAPSHOT" |
| | | jobs: |
| | | release: |
| | | name: Maven release |
| | | release-maven: |
| | | runs-on: 'ubuntu-latest' |
| | | steps: |
| | | - name: Print github context |
| | |
| | | name: Docker release |
| | | runs-on: 'ubuntu-latest' |
| | | needs: |
| | | - release |
| | | - release-maven |
| | | steps: |
| | | - uses: actions/checkout@v3 |
| | | with: |
| | | ref: ${{ github.event.inputs.releaseVersion }} |
| | | fetch-depth: 1 |
| | | submodules: recursive |
| | | - name: Docker meta (default) |
| | | - name: Docker meta |
| | | id: meta |
| | | uses: docker/metadata-action@v3 |
| | | with: |
| | |
| | | tags: | |
| | | type=raw,value=latest |
| | | type=raw,value=${{ github.event.inputs.releaseVersion }} |
| | | - name: Docker meta (alpine) |
| | | id: meta_alpine |
| | | - name: Set up QEMU |
| | | uses: docker/setup-qemu-action@v1 |
| | | - name: Set up Docker Buildx |
| | | uses: docker/setup-buildx-action@v1 |
| | | - name: Login to DockerHub |
| | | uses: docker/login-action@v1 |
| | | with: |
| | | username: ${{ secrets.DOCKER_USERNAME }} |
| | | password: ${{ secrets.DOCKER_PASSWORD }} |
| | | - name: Login to GHCR |
| | | uses: docker/login-action@v1 |
| | | with: |
| | | registry: ghcr.io |
| | | username: ${{ github.repository_owner }} |
| | | password: ${{ secrets.GITHUB_TOKEN }} |
| | | - name: Build and push image |
| | | uses: docker/build-push-action@v2 |
| | | continue-on-error: true |
| | | with: |
| | | context: ./opendj-packages/opendj-docker |
| | | file: ./opendj-packages/opendj-docker/Dockerfile |
| | | build-args: | |
| | | VERSION=${{ github.event.inputs.releaseVersion }} |
| | | platforms: linux/amd64,linux/arm64/8 |
| | | push: true |
| | | tags: ${{ steps.meta.outputs.tags }} |
| | | labels: ${{ steps.meta.outputs.labels }} |
| | | release-docker-alpine: |
| | | name: Docker release |
| | | runs-on: 'ubuntu-latest' |
| | | needs: |
| | | - release-maven |
| | | steps: |
| | | - uses: actions/checkout@v3 |
| | | with: |
| | | ref: ${{ github.event.inputs.releaseVersion }} |
| | | fetch-depth: 1 |
| | | submodules: recursive |
| | | - name: Docker meta |
| | | id: meta |
| | | uses: docker/metadata-action@v3 |
| | | with: |
| | | images: | |
| | |
| | | registry: ghcr.io |
| | | username: ${{ github.repository_owner }} |
| | | password: ${{ secrets.GITHUB_TOKEN }} |
| | | - name: Build and push image (default) |
| | | uses: docker/build-push-action@v2 |
| | | continue-on-error: true |
| | | with: |
| | | context: ./opendj-packages/opendj-docker |
| | | file: ./opendj-packages/opendj-docker/Dockerfile |
| | | build-args: | |
| | | VERSION=${{ github.event.inputs.releaseVersion }} |
| | | platforms: linux/amd64,linux/arm64/8 |
| | | push: true |
| | | tags: ${{ steps.meta.outputs.tags }} |
| | | labels: ${{ steps.meta.outputs.labels }} |
| | | - name: Build and push image (alpine) |
| | | - name: Build and push image |
| | | continue-on-error: true |
| | | uses: docker/build-push-action@v2 |
| | | with: |
| | |
| | | VERSION=${{ github.event.inputs.releaseVersion }} |
| | | platforms: linux/amd64,linux/arm64/8, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6, linux/ppc64le |
| | | push: true |
| | | tags: ${{ steps.meta_alpine.outputs.tags }} |
| | | labels: ${{ steps.meta_alpine.outputs.labels }} |
| | | tags: ${{ steps.meta.outputs.tags }} |
| | | labels: ${{ steps.meta.outputs.labels }} |