Allow running CI from rawhide images

We will, temporarily, want to run from rawhide images
that include the rust-podman-sequoia RPM, as well as Fedora 43
images.

We have only one skopeo_cidev though, and we don't want to build
a rawhide variant; so, allow consuming it from rawhide.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
Miloslav Trmač
2025-08-20 21:44:38 +02:00
parent 8602d2e525
commit 2451f10dd8

View File

@@ -71,8 +71,10 @@ _run_setup() {
# automation, but the sources are in different directories. It's # automation, but the sources are in different directories. It's
# possible for a mismatch to happen, but should (hopefully) be unlikely. # possible for a mismatch to happen, but should (hopefully) be unlikely.
# Double-check to make sure. # Double-check to make sure.
# Temporarily, allow running on Rawhide VMs and consuming older binaries:
# that should be compatible enough. Eventually, well stop using Rawhide again.
if ! grep -Fqx "ID=$OS_RELEASE_ID" $mnt/etc/os-release || \ if ! grep -Fqx "ID=$OS_RELEASE_ID" $mnt/etc/os-release || \
! grep -Fqx "VERSION_ID=$OS_RELEASE_VER" $mnt/etc/os-release; then { ! [[ "$VM_IMAGE_NAME" =~ "rawhide" ]] && ! grep -Fqx "VERSION_ID=$OS_RELEASE_VER" $mnt/etc/os-release; } then
die "Somehow $SKOPEO_CIDEV_CONTAINER_FQIN is not based on $OS_REL_VER." die "Somehow $SKOPEO_CIDEV_CONTAINER_FQIN is not based on $OS_REL_VER."
fi fi
msg "Copying test binaries from $SKOPEO_CIDEV_CONTAINER_FQIN /usr/local/bin/" msg "Copying test binaries from $SKOPEO_CIDEV_CONTAINER_FQIN /usr/local/bin/"