Skip to content

Commit

Permalink
rhel8: also build RHEL 8.10 images
Browse files Browse the repository at this point in the history
RHEL 8.9 is end-of-life already [0], let's provide images with the latest
+ final RHEL8 minor version.

[0] https://access.redhat.com/support/policy/updates/errata#RHEL8_Planning_Guide

Signed-off-by: Julian Wiedmann <[email protected]>
  • Loading branch information
julianwiedmann committed Nov 4, 2024
1 parent 2d092e3 commit b2baf96
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/buildx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
name: kernel versions
with:
script: |
var all_kernels = ['4.19', '5.4', '5.10', '5.15', '6.1', '6.6', 'bpf', 'bpf-net', 'bpf-next', 'rhel8.6', 'rhel8.9' ]
var all_kernels = ['4.19', '5.4', '5.10', '5.15', '6.1', '6.6', 'bpf', 'bpf-net', 'bpf-next', 'rhel8.6', 'rhel8.9', 'rhel8.10' ]
var kernels = []
const kernel_label_prefix = 'gha-builds/kernel/'
res = await github.rest.issues.listLabelsOnIssue({
Expand Down Expand Up @@ -85,15 +85,24 @@ jobs:
case 'rhel8.6':
options.dockerfile = "dockerfiles/kernel-images-rhel8"
options.platforms = 'linux/amd64'
options.rhel_repo = 'vault'
options.rhel_ver = '8.6'
options.rhel_kver = '4.18.0-372.32.1.el8_6'
break
case 'rhel8.9':
options.dockerfile = "dockerfiles/kernel-images-rhel8"
options.platforms = 'linux/amd64'
options.rhel_repo = 'vault'
options.rhel_ver = '8.9'
options.rhel_kver = '4.18.0-513.24.1.el8_9'
break
case 'rhel8.10':
options.dockerfile = "dockerfiles/kernel-images-rhel8"
options.platforms = 'linux/amd64'
options.rhel_repo = 'pub'
options.rhel_ver = '8.10'
options.rhel_kver = '4.18.0-553.22.1.el8_10'
break
default:
options.dockerfile = "dockerfiles/kernel-images"
options.platforms = 'linux/amd64,linux/arm64'
Expand Down Expand Up @@ -140,6 +149,7 @@ jobs:
build-tag: quay.io/lvh-images/kernel-images-ci:${{ matrix.kernel.ver }}-${{ needs.conf.outputs.tag }}
build-args: |
"KERNEL_VER=${{ matrix.kernel.ver }}"
"RHEL_REPO=${{ matrix.kernel.rhel_repo }}"
"RHEL_VER=${{ matrix.kernel.rhel_ver }}"
"RHEL_KVER=${{ matrix.kernel.rhel_kver }}"
check-files: '.'
Expand Down Expand Up @@ -212,6 +222,8 @@ jobs:
kernel: {ver: "rhel8.6"}
- runner: {name: "ubuntu-22.04-arm64", arch: "arm64"}
kernel: {ver: "rhel8.9"}
- runner: {name: "ubuntu-22.04-arm64", arch: "arm64"}
kernel: {ver: "rhel8.10"}
uses: ./.github/workflows/buildx-stage.yaml
secrets: inherit
with:
Expand Down
3 changes: 2 additions & 1 deletion dockerfiles/kernel-images-rhel8
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ RUN dnf config-manager --set-enabled powertools

FROM builder AS prepare

ARG RHEL_REPO=vault
ARG RHEL_VER=8.6
ARG RHEL_KVER=4.18.0-372.32.1.el8_6

WORKDIR /tmp
RUN curl -LO "https://dl.rockylinux.org/vault/rocky/${RHEL_VER}/BaseOS/source/tree/Packages/k/kernel-${RHEL_KVER}.src.rpm"
RUN curl -LO "https://dl.rockylinux.org/${RHEL_REPO}/rocky/${RHEL_VER}/BaseOS/source/tree/Packages/k/kernel-${RHEL_KVER}.src.rpm"
RUN rpm -ivh kernel*.src.rpm

WORKDIR /root/rpmbuild/SPECS
Expand Down

0 comments on commit b2baf96

Please sign in to comment.