blob: 90595c864df9a1d96b579e877eee79cffc092b6e [file] [log] [blame]
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00001# SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@huawei.com>
2#
3# SPDX-License-Identifier: MIT
4
5name: "Cleanup dangling docker images"
6
7runs:
8 using: "composite"
9 steps:
10 - name: Cleanup dangling images
11 shell: bash
12 run: |
13 echo -n "Cleanup dangling images... "
14 if ! docker rmi $(docker images --filter "dangling=true" -q --no-trunc) > /dev/null 2>&1; then
15 echo "no dangling images found."
16 else
17 echo "done."
18 fi