justfile: Do not push Rawhide with a version number
All checks were successful
Validate manifests / validate (pull_request) Successful in 20s
Daily comps-sync check / validate (pull_request) Successful in 21s
Compose tests / testing-farm (pull_request_target) Successful in 34m40s

Rawhide should not have a release number.

See: releng/tickets#7445

Fixes:
- 52bd512 justfile: Also push rawhide images under the rawhide tag
- 268aec6 justfile: Generalize version logic
This commit is contained in:
Timothée Ravier 2026-10-09 15:43:36 +02:00
commit e35be8fed0

View file

@ -300,7 +300,11 @@ upload-container variant="silverblue" arch="default":
"--dest-compress-format" "zstd"
)
version={{release_ver}}
if [[ {{is_rawhide}} ]]; then
version="rawhide"
else
version={{release_ver}}
fi
# Push fully versioned tag (major version, build date/id, arch)
retry 5 60 skopeo copy "${SKOPEO_ARGS[@]}" \
@ -367,20 +371,17 @@ upload-container-local variant="silverblue" arch="default":
"--dest-compress-format" "zstd"
)
version={{release_ver}}
if [[ {{is_rawhide}} ]]; then
version="rawhide"
else
version={{release_ver}}
fi
# Push fully versioned tag (major version, build date/id, arch)
retry 5 60 skopeo copy "${SKOPEO_ARGS[@]}" \
"oci-archive:${variant}.ociarchive" \
"docker://${image}:${version}.${buildid}${suffix}"
# Push under the rawhide name as needed
if [[ {{is_rawhide}} ]]; then
retry 5 60 skopeo copy "${SKOPEO_ARGS[@]}" \
"oci-archive:${variant}.ociarchive" \
"docker://${image}:rawhide.${buildid}${suffix}"
fi
# Create a multi-arch manifest for a given variant, push it to a registry and sign it
multi-arch-manifest variant="silverblue":
#!/bin/bash
@ -427,7 +428,11 @@ multi-arch-manifest variant="silverblue":
image="${REGISTRY}/${RELEASE_REPO}/${variant}"
version={{release_ver}}
if [[ {{is_rawhide}} ]]; then
version="rawhide"
else
version={{release_ver}}
fi
# Create manifest with full version tags
buildah manifest create "${image}:${version}.${buildid}" \
@ -443,13 +448,6 @@ multi-arch-manifest variant="silverblue":
"${image}:${version}.${buildid}" \
"docker://${image}:${version}.${buildid}"
# Push under the rawhide name as needed
if [[ {{is_rawhide}} ]]; then
retry 5 60 buildah manifest push \
"${image}:${version}.${buildid}" \
"docker://${image}:rawhide.${buildid}"
fi
# Sign manifest
retry 5 60 cosign sign -y --key private.key ${image}:${version}.${buildid}
@ -458,13 +456,6 @@ multi-arch-manifest variant="silverblue":
"${image}:${version}.${buildid}" \
"docker://${image}:${version}"
# Push under the rawhide name as needed
if [[ {{is_rawhide}} ]]; then
retry 5 60 buildah manifest push \
"${image}:${version}.${buildid}" \
"docker://${image}:rawhide"
fi
# Sign manifest
retry 5 60 cosign sign -y --key private.key ${image}:${version}