build: Add image size increase/decrease logic
All checks were successful
build-image / Build image (push) Successful in 8m10s

This commit is contained in:
2025-07-28 21:52:12 +10:00
parent 74483e57f8
commit c2f4b83102

View File

@ -85,6 +85,8 @@ jobs:
qemu-system-x86 \ qemu-system-x86 \
qemu-utils qemu-utils
qemu-img resize ubuntu-vm/ubuntu.img +5G
[ -e /dev/kvm ] && kvm_flag="-enable-kvm" || kvm_flag="" [ -e /dev/kvm ] && kvm_flag="-enable-kvm" || kvm_flag=""
qemu-system-x86_64 \ qemu-system-x86_64 \
@ -98,6 +100,10 @@ jobs:
-net nic \ -net nic \
-net user -net user
qemu-img convert -O qcow2 ubuntu-vm/ubuntu.img ubuntu-vm/ubuntu-compacted.img
ls -lash ubuntu-vm
# semrel: # semrel:
# name: Semantic Release # name: Semantic Release
# runs-on: ubuntu-latest # runs-on: ubuntu-latest