mirror of
https://pagure.io/workstation-ostree-config.git
synced 2026-11-03 21:49:45 -09:00
justfile: Use zstd compression by default for container images
Default for Fedora 43+ and F42 will soon be EOL.
This commit is contained in:
parent
1be7808c49
commit
a4cac9ac68
1 changed files with 4 additions and 14 deletions
18
justfile
18
justfile
|
|
@ -339,17 +339,12 @@ upload-container variant=default_variant arch=default_arch:
|
|||
suffix="-${arch}"
|
||||
fi
|
||||
|
||||
# Support for the zstd:chunked format is not ready yet
|
||||
SKOPEO_ARGS=(
|
||||
"--retry-times" "3"
|
||||
"--dest-compress-format" "zstd"
|
||||
)
|
||||
|
||||
# Support for the zstd:chunked format is not ready yet
|
||||
SKOPEO_ARGS+=("--dest-compress-format")
|
||||
if [[ ${version} == "rawhide" ]] || [[ ${version} == "43" ]]; then
|
||||
SKOPEO_ARGS+=("zstd")
|
||||
else
|
||||
SKOPEO_ARGS+=("gzip")
|
||||
fi
|
||||
|
||||
# Push fully versioned tag (major version, build date/id, arch)
|
||||
retry 5 60 skopeo copy "${SKOPEO_ARGS[@]}" \
|
||||
|
|
@ -416,18 +411,13 @@ upload-container-local variant=default_variant arch=default_arch:
|
|||
suffix="-${arch}"
|
||||
fi
|
||||
|
||||
# Support for the zstd:chunked format is not ready yet
|
||||
SKOPEO_ARGS=(
|
||||
"--retry-times" "3"
|
||||
"--dest-tls-verify=false"
|
||||
"--dest-compress-format" "zstd"
|
||||
)
|
||||
|
||||
# Support for the zstd:chunked format is not ready yet
|
||||
SKOPEO_ARGS+=("--dest-compress-format")
|
||||
if [[ ${version} == "rawhide" ]] || [[ ${version} == "43" ]]; then
|
||||
SKOPEO_ARGS+=("zstd")
|
||||
else
|
||||
SKOPEO_ARGS+=("gzip")
|
||||
fi
|
||||
|
||||
# Push fully versioned tag (major version, build date/id, arch)
|
||||
retry 5 60 skopeo copy "${SKOPEO_ARGS[@]}" \
|
||||
|
|
|
|||
Loading…
Reference in a new issue