Skip to content

Release Patch Docker Image by @sophia-chen-ttd #73

Release Patch Docker Image by @sophia-chen-ttd

Release Patch Docker Image by @sophia-chen-ttd #73

name: Release UID2 Core Image
run-name: ${{ inputs.release_type == 'Snapshot' && 'Publish Pre-release' || format('Release {0}', inputs.release_type)}} Docker Image by @${{ github.actor }}
on:
workflow_dispatch:
inputs:
release_type:
type: choice
description: The type of release
options:
- Snapshot
- Patch
- Minor
- Major
operator_image_version:
description: 'Image: Operator image version'
type: string
default: latest
optout_image_version:
description: 'Image: Optout image version'
type: string
default: latest
e2e_image_version:
description: 'Image: E2E image version'
type: string
default: latest
optout_branch:
description: 'Config: Optout branch for config'
type: string
default: main
admin_branch:
description: 'Config: Admin branch for config'
type: string
default: main
operator_branch:
description: 'Config: Operator branch for config'
type: string
default: main
vulnerability_severity:
description: The severity to fail the workflow if such vulnerability is detected. DO NOT override it unless a Jira ticket is raised.
type: choice
options:
- CRITICAL,HIGH
- CRITICAL,HIGH,MEDIUM
- CRITICAL (DO NOT use if JIRA ticket not raised)
jobs:
Image:
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-publish-java-to-docker-versioned.yaml@v3
with:
release_type: ${{ inputs.release_type }}
vulnerability_severity: ${{ inputs.vulnerability_severity }}
java_version: 21
secrets: inherit
e2e-test:
name: E2E Test
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-run-e2e-tests.yaml@v3
needs: Image
with:
operator_type: public
operator_image_version: ${{ inputs.operator_image_version }}
core_image_version: ${{ needs.image.outputs.image_tag }}
optout_image_version: ${{ inputs.optout_image_version }}
e2e_image_version: ${{ inputs.e2e_image_version }}
branch_core: ${{ github.ref_name }}
branch_optout: ${{ inputs.optout_branch }}
branch_admin: ${{ inputs.admin_branch }}
operator_branch: ${{ inputs.operator_branch }}
secrets: inherit