|
| 1 | +name: Release Self Serve Portal Image |
| 2 | +run-name: ${{ inputs.release_type == 'Snapshot' && 'Publish Pre-release' || format('Release {0}', inputs.release_type)}} Self Serve Portal Image by @${{ github.actor }} |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + inputs: |
| 6 | + release_type: |
| 7 | + type: choice |
| 8 | + description: The type of release |
| 9 | + options: |
| 10 | + - Major |
| 11 | + - Minor |
| 12 | + - Patch |
| 13 | + - Snapshot |
| 14 | + required: true |
| 15 | + |
| 16 | +jobs: |
| 17 | + incrementVersionNumber: |
| 18 | + uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-increase-version-number.yaml@v2 |
| 19 | + with: |
| 20 | + release_type: ${{ inputs.release_type }} |
| 21 | + secrets: inherit |
| 22 | + |
| 23 | + publishForApiUi: |
| 24 | + uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-publish-to-docker-versioned.yaml@v2 |
| 25 | + needs: incrementVersionNumber |
| 26 | + with: |
| 27 | + new_version: ${{ needs.incrementVersionNumber.outputs.new_version }} |
| 28 | + image_tag: ${{ needs.incrementVersionNumber.outputs.image_tag }} |
| 29 | + release_type: ${{ inputs.release_type }} |
| 30 | + docker_file: Dockerfile_ssportal |
| 31 | + docker_image_name: iabtechlab/uid2-ssportal |
| 32 | + docker_registry: ghcr.io |
| 33 | + secrets: inherit |
| 34 | + |
| 35 | + publishForDBMigration: |
| 36 | + uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-publish-to-docker-versioned.yaml@v2 |
| 37 | + needs: incrementVersionNumber |
| 38 | + with: |
| 39 | + new_version: ${{ needs.incrementVersionNumber.outputs.new_version }} |
| 40 | + image_tag: ${{ needs.incrementVersionNumber.outputs.image_tag }} |
| 41 | + release_type: ${{ inputs.release_type }} |
| 42 | + docker_file: Dockerfile_ssportal_migration |
| 43 | + docker_image_name: iabtechlab/uid2-ssportal-migration |
| 44 | + docker_registry: ghcr.io |
| 45 | + secrets: inherit |
| 46 | + |
| 47 | + publishForKeycloak: |
| 48 | + uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-publish-to-docker-versioned.yaml@v2 |
| 49 | + needs: incrementVersionNumber |
| 50 | + with: |
| 51 | + new_version: ${{ needs.incrementVersionNumber.outputs.new_version }} |
| 52 | + image_tag: ${{ needs.incrementVersionNumber.outputs.image_tag }} |
| 53 | + release_type: ${{ inputs.release_type }} |
| 54 | + docker_file: Dockerfile_keycloak |
| 55 | + docker_image_name: iabtechlab/uid2-ssportal-keycloak |
| 56 | + docker_registry: ghcr.io |
| 57 | + secrets: inherit |
0 commit comments