From 33db348b35ac0afb5eecd68d7341f04f79ac9237 Mon Sep 17 00:00:00 2001 From: antheas Date: Mon, 1 Jul 2024 00:10:08 +0200 Subject: [PATCH] add space saving optimizations --- action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 29ccacf..f0928fd 100644 --- a/action.yml +++ b/action.yml @@ -84,10 +84,11 @@ runs: ${{ inputs.rechunk }} \ /sources/rechunk/2_create.sh - # Cleanup + # Cleanup and make space echo Unmounting and removing container sudo podman unmount ${{ steps.mount.outputs.container }} sudo podman rm ${{ steps.mount.outputs.container }} + sudo podman rmi ${{ inputs.ref }} - name: Rechunk OSTree Commit id: rechunk shell: bash @@ -112,6 +113,9 @@ runs: echo "version=$(sudo cat ./version.txt)" >> $GITHUB_OUTPUT echo "ref=oci:$OUT_NAME" >> $GITHUB_OUTPUT + + # Remove cached volume + sudo podman volume rm cache_ostree env: VERSION: ${{ inputs.version }} LABELS: ${{ inputs.labels }} \ No newline at end of file