Skip to content

Commit

Permalink
Move patch to inline
Browse files Browse the repository at this point in the history
  • Loading branch information
HippocampusGirl committed Sep 16, 2024
1 parent 0aa4f03 commit cd285fb
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,20 @@ jobs:
- name: Patch docker2singularity
shell: bash
run: |
wget -qO /tmp/docker2singularity.patch https://gist.githubusercontent.com/HippocampusGirl/e2c2166cbdc71e11b75380d34448b3f3/raw
patch /docker2singularity.sh /tmp/docker2singularity.patch
space=" "
patch <<EOF
--- docker2singularity.sh
+++ docker2singularity.sh
@@ -314,6 +314,8 @@
echo "(8/10) Stopping and removing the container..."
docker stop \$container_id >> /dev/null
docker rm \$container_id >> /dev/null
+docker container prune --force >> /dev/null
+docker image prune --all --force >> /dev/null
${space}
# Build a final image from the sandbox
echo "(9/10) Building \${image_format} container..."
EOF
- name: Convert to Singularity
shell: bash
Expand Down

0 comments on commit cd285fb

Please sign in to comment.