From c2f4b83102389956c4a4cab68ea8c6a10833466e Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Mon, 28 Jul 2025 21:52:12 +1000 Subject: [PATCH] build: Add image size increase/decrease logic --- .gitea/workflows/actions.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/actions.yaml b/.gitea/workflows/actions.yaml index 627d4ab..04f50fc 100644 --- a/.gitea/workflows/actions.yaml +++ b/.gitea/workflows/actions.yaml @@ -85,6 +85,8 @@ jobs: qemu-system-x86 \ qemu-utils + qemu-img resize ubuntu-vm/ubuntu.img +5G + [ -e /dev/kvm ] && kvm_flag="-enable-kvm" || kvm_flag="" qemu-system-x86_64 \ @@ -98,6 +100,10 @@ jobs: -net nic \ -net user + qemu-img convert -O qcow2 ubuntu-vm/ubuntu.img ubuntu-vm/ubuntu-compacted.img + + ls -lash ubuntu-vm + # semrel: # name: Semantic Release # runs-on: ubuntu-latest