justfile: Do not push Rawhide with a version number
Rawhide should not have a release number. See: releng/tickets#7445 Fixes: -52bd512justfile: Also push rawhide images under the rawhide tag -268aec6justfile: Generalize version logic
This commit is contained in:
parent
3e314a24a3
commit
e35be8fed0
1 changed files with 15 additions and 24 deletions
39
justfile
39
justfile
|
|
@ -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}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue