3030 # QEMU
3131 - { image: "centos-9", env: "qemu-ansible-core-2-16" }
3232 - { image: "centos-10", env: "qemu-ansible-core-2-17" }
33- - { image: "fedora-42", env: "qemu-ansible-core-2-19" }
3433 - { image: "fedora-43", env: "qemu-ansible-core-2-20" }
34+ - { image: "fedora-44", env: "qemu-ansible-core-2-21" }
3535 - { image: "leap-15.6", env: "qemu-ansible-core-2-18" }
3636
3737 # container
@@ -40,10 +40,11 @@ jobs:
4040 # broken on non-running dbus
4141 # - { image: "centos-10", env: "container-ansible-core-2-17" }
4242 - { image: "centos-10-bootc", env: "container-ansible-core-2-17" }
43- - { image: "fedora-42", env: "container-ansible-core-2-17" }
4443 - { image: "fedora-43", env: "container-ansible-core-2-20" }
45- - { image: "fedora-42-bootc ", env: "container-ansible-core-2-17 " }
44+ - { image: "fedora-44 ", env: "container-ansible-core-2-21 " }
4645 - { image: "fedora-43-bootc", env: "container-ansible-core-2-20" }
46+ # ansible-core 2.21 cannot enable services using service module in bootc images
47+ - { image: "fedora-44-bootc", env: "container-ansible-core-2-20" }
4748
4849 env :
4950 TOX_ARGS : " --skip-tags tests::infiniband,tests::nvme,tests::scsi"
@@ -110,29 +111,24 @@ jobs:
110111 python3 -m pip install --upgrade pip
111112 sudo apt update
112113 sudo apt install -y --no-install-recommends git ansible-core genisoimage qemu-system-x86
113- pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.20.0 "
114+ pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.20.1 "
114115
115- # HACK: Drop this when moving this workflow to 26.04 LTS
116- - name : Update podman to 5.x for compatibility with bootc-image-builder's podman 5
117- if : steps.check_platform.outputs.supported && endsWith(matrix.scenario.image, '-bootc')
116+ - name : Check for podman version 5 or higher
117+ id : check_podman_version
118+ if : steps.check_platform.outputs.supported
118119 run : |
119- sed 's/noble/plucky/g' /etc/apt/sources.list.d/ubuntu.sources | sudo tee /etc/apt/sources.list.d/plucky.sources >/dev/null
120- cat <<EOF | sudo tee /etc/apt/preferences.d/podman.pref >/dev/null
121- Package: podman buildah golang-github-containers-common crun libgpgme11t64 libgpg-error0 golang-github-containers-image catatonit conmon containers-storage
122- Pin: release n=plucky
123- Pin-Priority: 991
124-
125- Package: libsubid4 netavark passt aardvark-dns containernetworking-plugins libslirp0 slirp4netns
126- Pin: release n=plucky
127- Pin-Priority: 991
128-
129- Package: *
130- Pin: release n=plucky
131- Pin-Priority: 400
132- EOF
120+ podman_version=$(podman version -f '{{.Client.Version}}')
121+ podman_major_version="${podman_version%%.*}"
122+ echo "Podman version: $podman_version"
123+ if [ "$podman_major_version" -lt 5 ]; then
124+ echo "need_podman_update=1" >> "$GITHUB_OUTPUT"
125+ else
126+ echo "need_podman_update=0" >> "$GITHUB_OUTPUT"
127+ fi
133128
134- sudo apt update
135- sudo apt install -y podman crun conmon containers-storage
129+ - name : Ensure use of podman 5
130+ if : steps.check_platform.outputs.supported && steps.check_podman_version.outputs.need_podman_update == 1
131+ uses : redhat-actions/podman-install@main
136132
137133 - name : Configure tox-lsr
138134 if : steps.check_platform.outputs.supported
0 commit comments