Skip to content

Commit

Permalink
uncomment action
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas committed Jun 30, 2024
1 parent ef504b9 commit 578d04b
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 578d04b

Please sign in to comment.