From 6ae2e187ca0e8dd59866422eaa06c2b49e1edcd1 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 16 Jul 2026 13:14:29 +0200 Subject: [PATCH] refactor: update output artifact format to zstd and enhance compression process --- Jenkinsfile | 4 +++- build-rootfs.sh | 12 +++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1f0a8f6..e143af9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -31,7 +31,9 @@ pipeline { debootstrap \ xz-utils \ tar \ - ca-certificates + ca-certificates \ + zstd \ + pv ''' diff --git a/build-rootfs.sh b/build-rootfs.sh index f3cb17b..ac2bf29 100644 --- a/build-rootfs.sh +++ b/build-rootfs.sh @@ -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"