chore(ci): add --no-tags to skopeo inspect (#2912)

This is faster and less resource intensive. It usually takes a couple
seconds on my machine.

We only care about the label on that one image, and not the 3000 other
images in the ublue-os/akmods namespace.
This commit is contained in:
renner 2026-09-23 03:55:52 +00:00 committed by GitHub
parent 99fa24f72e
commit 3110ae30a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -182,7 +182,7 @@ build $image=default_image $tag=default_tag $flavor=default_flavor $rechunk="fal
fi
if [[ -z "${kernel_pin:-}" ]]; then
kernel_release=$(skopeo inspect --retry-times 3 docker://ghcr.io/ublue-os/akmods:"${akmods_flavor}"-"${fedora_version}" | jq -r '.Labels["ostree.linux"]')
kernel_release=$(skopeo inspect --no-tags --retry-times 3 docker://ghcr.io/ublue-os/akmods:"${akmods_flavor}"-"${fedora_version}" | jq -r '.Labels["ostree.linux"]')
else
kernel_release="${kernel_pin}"
fi