File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 11name : " Build OBaaS OpenJDK Base Image"
2+
23on :
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+
619env :
720 dst_img : openjdk-image-obaas
821 description : " OpenJDK OBaaS Image."
22+
923jobs :
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
@@ -35,15 +49,14 @@ jobs:
3549 continue-on-error : true
3650
3751 - name : Create New Image
38- if : env.latest_digest == ''
52+ if : github.event_name == 'workflow_dispatch' || env.latest_digest == ''
3953 uses : ./.github/actions/process-image-openjdk
4054 with :
4155 src_image : container-registry.oracle.com/java/openjdk:${{ matrix.base_version }}
4256 dst_image : ghcr.io/${{ github.repository_owner }}/${{ env.dst_img }}:${{ matrix.base_version }}
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 != ''
You can’t perform that action at this time.
0 commit comments