File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : " Build OBaaS OpenJDK Base Image"
2
+
2
3
on :
3
4
schedule :
4
5
- cron : " 0 0 * * *"
5
6
workflow_dispatch :
7
+ inputs :
8
+ base_version :
9
+ description : " Select the OpenJDK version to build (leave empty to build all versions)"
10
+ required : false
11
+ default : " "
12
+ type : choice
13
+ options :
14
+ - " "
15
+ - " 17"
16
+ - " 21"
17
+ - " 24"
18
+
6
19
env :
7
20
dst_img : openjdk-image-obaas
8
21
description : " OpenJDK OBaaS Image."
22
+
9
23
jobs :
10
24
obaas-image :
11
25
strategy :
12
26
matrix :
13
- base_version : [ 17, 21, 24]
27
+ base_version : ${{ github.event.inputs.base_version != '' && [github.event.inputs.base_version] || [ 17, 21, 24] }}
14
28
runs-on : ubuntu-latest
15
29
permissions :
16
30
packages : write
43
57
description : ${{ env.description }}
44
58
push : true
45
59
pkg_command : dnf
46
-
47
60
- name : Run Trivy Vulnerability Scanner
48
61
id : trivy_scan
49
62
if : env.latest_digest != ''
You can’t perform that action at this time.
0 commit comments