build: delete images safely and securily
All checks were successful
/ test (map[name:1.74.1]) (push) Successful in 37s
/ test (map[name:nightly]) (push) Successful in 5s
/ test (map[name:stable]) (push) Successful in 5s

- xargs -r -- only run the docker rmi command if there are images to delete
- --force  -- delete even if used
This commit is contained in:
Paul Campbell 2025-01-12 18:56:43 +00:00
parent 70e801e03c
commit 5a5942c480

View file

@ -13,7 +13,7 @@ jobs:
- name: Clear image from cache
run: |
docker images git.kemitix.net/kemitix/rust -q | sort -u | xargs docker rmi
docker images git.kemitix.net/kemitix/rust -q | sort -u | xargs -r docker rmi --force
docker system prune --force --all
- name: Build