We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
COMPRESS_OUTPUTIMAGE=zst
1 parent de044ed commit d4f7046Copy full SHA for d4f7046
lib/functions/image/compress-checksum.sh
@@ -41,6 +41,11 @@ function output_images_compress_and_checksum() {
41
display_alert "Compressing with xz" "${uncompressed_file_basename}.xz" "info"
42
xz -T 0 "-${xz_compression_ratio_image}" "${uncompressed_file}" # "If xz is provided with input but no output, it will delete the input"
43
compression_type=".xz"
44
+ elif [[ $COMPRESS_OUTPUTIMAGE == *zst* ]]; then
45
+ display_alert "Compressing with zstd" "${uncompressed_file_basename}.zst" "info"
46
+ zstdmt "-${ZSTD_COMPRESSION_LEVEL:-9}" "${uncompressed_file}" -o "${uncompressed_file}.zst"
47
+ rm -f "${uncompressed_file}"
48
+ compression_type=".zst"
49
fi
50
51
if [[ $COMPRESS_OUTPUTIMAGE == *sha* ]]; then
0 commit comments