refactor: update output artifact format to zstd and enhance compression process
This commit is contained in:
Vendored
+3
-1
@@ -31,7 +31,9 @@ pipeline {
|
||||
debootstrap \
|
||||
xz-utils \
|
||||
tar \
|
||||
ca-certificates
|
||||
ca-certificates \
|
||||
zstd \
|
||||
pv
|
||||
|
||||
'''
|
||||
|
||||
|
||||
+9
-3
@@ -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"
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user