File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ inputs:
13
13
push :
14
14
description : Boolean to push image (true) or just build (false)
15
15
required : true
16
+ pkg_command :
17
+ description : Package manager command to run during updates (eg microdnf)
18
+ required : false
19
+ default : microdnf
16
20
runs :
17
21
using : " composite"
18
22
steps :
35
39
LABEL org.opencontainers.image.description="${{ inputs.description }}"
36
40
LABEL org.opencontainers.image.name="${{ inputs.dst_image }}"
37
41
LABEL org.opencontainers.image.version="${{ env.date }}"
38
- RUN (microdnf update --refresh --nodocs --best || microdnf update --refresh --nodocs --nobest) && microdnf clean all
42
+ RUN (${{ inputs.pkg_command }} update --refresh --nodocs --best || ${{ inputs.pkg_command }} update --refresh --nodocs --nobest) && ${{ inputs.pkg_command }} clean all
39
43
#RUN echo "Testing Update Functionality" > /image_digest
40
44
RUN rpm -qa | sort | sha256sum | awk '{print $1}' > /image_digest
41
45
EOF
Original file line number Diff line number Diff line change 1
- name : " Build OBaaS Base Image"
1
+ name : " Build OBaaS OpenJDK Base Image"
2
2
on :
3
3
schedule :
4
4
- cron : " 0 0 * * *"
65
65
dst_image : ghcr.io/${{ github.repository_owner }}/${{ env.dst_img }}:${{ matrix.base_version }}
66
66
description : ${{ env.description }}
67
67
push : false
68
+ pkg_command : dnf
68
69
69
70
- name : Get newest Image Software Digest
70
71
id : get_newest_digest
You can’t perform that action at this time.
0 commit comments