-
Notifications
You must be signed in to change notification settings - Fork 7
70 lines (67 loc) · 2.32 KB
/
release-docker-image.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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