diff --git a/action.yml b/action.yml index 9a82501..370784f 100644 --- a/action.yml +++ b/action.yml @@ -61,34 +61,34 @@ runs: MOUNT=$(sudo podman mount $CREF) echo "container=$CREF" >> $GITHUB_OUTPUT echo "mount=$MOUNT" >> $GITHUB_OUTPUT - # - name: Create OSTree Commit - # shell: bash - # run: | - # # Pruning - # echo Pruning - # sudo podman run --rm \ - # -v "${{ steps.mount.outputs.mount }}":/var/tree \ - # -e TREE=/var/tree \ - # -u 0:0 \ - # ${{ inputs.rechunk }} \ - # /sources/rechunk/1_prune.sh + - name: Create OSTree Commit + shell: bash + run: | + # Pruning + echo Pruning + sudo podman run --rm \ + -v "${{ steps.mount.outputs.mount }}":/var/tree \ + -e TREE=/var/tree \ + -u 0:0 \ + ${{ inputs.rechunk }} \ + /sources/rechunk/1_prune.sh - # # OSTree commit - # echo Committing to OSTree - # sudo podman run --rm \ - # -v "${{ steps.mount.outputs.mount }}":/var/tree \ - # -e TREE=/var/tree \ - # -v "cache_ostree:/var/ostree" \ - # -e REPO=/var/ostree/repo \ - # -u 0:0 \ - # ${{ inputs.rechunk }} \ - # /sources/rechunk/2_create.sh + # OSTree commit + echo Committing to OSTree + sudo podman run --rm \ + -v "${{ steps.mount.outputs.mount }}":/var/tree \ + -e TREE=/var/tree \ + -v "cache_ostree:/var/ostree" \ + -e REPO=/var/ostree/repo \ + -u 0:0 \ + ${{ inputs.rechunk }} \ + /sources/rechunk/2_create.sh - # # 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 }} + # 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