ci: update Linux image to Fedora 40

Drop ROCm HIP packages from the image in favor of the dedicated
Fedora 39 base image we use for that job.

Issue: #25932
7 files changed