build: delete images safely and securily
- xargs -r -- only run the docker rmi command if there are images to delete - --force -- delete even if used
This commit is contained in:
parent
70e801e03c
commit
5a5942c480
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue