Skip to content

Commit

Permalink
add an additional cleanup command to the self hosted runner hooks
Browse files Browse the repository at this point in the history
- sometimes the images need to be manually cleaned out prior to
  running 'podman system reset --force' so add a call to 'podman rmi
  --all --force'

- this seems counter intuitive because the 'system reset --force'
  should be taking care of this -- it makes me wonder if this is a
  "bug" in an older version of podman and wouldn't be required if
  newer software levels were being used
  • Loading branch information
k-rister committed Aug 28, 2024
1 parent 889463d commit 19db52b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

sudo buildah rm --all
sudo podman rmi --all --force
sudo podman system reset --force

echo "Cleaning up registry authorization tokens..."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

sudo buildah rm --all
sudo podman rmi --all --force
sudo podman system reset --force

echo "Cleaning up registry authorization tokens..."
Expand Down

0 comments on commit 19db52b

Please sign in to comment.