Skip to content

Commit 5ce0e40

Browse files
authored
Merge branch 'main' into jdk_image_build
2 parents e158ac6 + 2156e23 commit 5ce0e40

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/openjdk-base-image.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,30 @@
11
name: "Build OBaaS OpenJDK Base Image"
2+
23
on:
34
schedule:
45
- cron: "0 0 * * *"
56
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+
619
env:
720
dst_img: openjdk-image-obaas
821
description: "OpenJDK OBaaS Image."
22+
923
jobs:
1024
obaas-image:
1125
strategy:
1226
matrix:
13-
base_version: [17, 21, 24]
27+
base_version: ${{ github.event.inputs.base_version != '' && [github.event.inputs.base_version] || [17, 21, 24] }}
1428
runs-on: ubuntu-latest
1529
permissions:
1630
packages: write
@@ -43,7 +57,6 @@ jobs:
4357
description: ${{ env.description }}
4458
push: true
4559
pkg_command: dnf
46-
4760
- name: Run Trivy Vulnerability Scanner
4861
id: trivy_scan
4962
if: env.latest_digest != ''

0 commit comments

Comments
 (0)