refactor: update output artifact format to zstd and enhance compression process

This commit is contained in:
2026-07-16 13:14:29 +02:00
parent 34b8608ae0
commit 6ae2e187ca
2 changed files with 12 additions and 4 deletions
Vendored
+3 -1
View File
@@ -31,7 +31,9 @@ pipeline {
debootstrap \
xz-utils \
tar \
ca-certificates
ca-certificates \
zstd \
pv
'''
+9 -3
View File
@@ -17,7 +17,7 @@ ESPOS_REPO="https://repo.elordenador.org"
ESPOS_SUITE="espos-unstable"
ROOTFS="$(pwd)/rootfs"
OUTPUT="espos-openrc-rootfs.tar.xz"
OUTPUT="espos-openrc-rootfs.tar.zst"
KEYRING_PACKAGE="espos-archive-keyring"
@@ -235,13 +235,19 @@ umount -lf "$ROOTFS/dev" || true
umount -lf "$ROOTFS/proc" || true
umount -lf "$ROOTFS/sys" || true
echo "[+] Creating artifact"
echo "[+] Calculando tamaño"
SIZE=$(du -sb "$ROOTFS" | cut -f1)
echo "[+] Creando rootfs comprimido"
tar \
--numeric-owner \
-C "$ROOTFS" \
-cJf "$OUTPUT" .
-cf - . \
| pv -s "$SIZE" \
| zstd -19 -T0 -o "$OUTPUT"