Skip to content

Commit

Permalink
run podman as sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas committed Jun 30, 2024
1 parent b3b165f commit e4c8e58
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,21 @@ runs:
- name: Prune Directory
shell: bash
run: |
sudo podman run -it --rm \
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: Commit to OSTree
shell: bash
run: |
sudo podman run -it --rm \
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
- name: Unmount Image
Expand All @@ -90,7 +92,7 @@ runs:
run: |
OUT_NAME=$(echo ${{ inputs.ref }} | rev | cut -d'/' -f1 | rev | sed 's/:/_/')
sudo podman run -it --rm \
sudo podman run --rm \
-v "$(pwd):/workspace" \
-v "cache_ostree:/var/ostree" \
-e REPO=/var/ostree/repo \
Expand All @@ -102,6 +104,7 @@ runs:
-e VERSION \
-e VERSION_FN="./version.txt"\
-e OUT_REF="oci:$OUT_NAME" \
-u 0:0 \
${{ inputs.rechunk }} \
/sources/rechunk/3_chunk.sh
Expand Down

0 comments on commit e4c8e58

Please sign in to comment.