diff --git a/.github/fiware/image-clone.sh b/.github/fiware/image-clone.sh index b5af716c..df3b5b9e 100755 --- a/.github/fiware/image-clone.sh +++ b/.github/fiware/image-clone.sh @@ -34,3 +34,9 @@ for i in "$@" ; do fi echo "" done + +for i in "$@" ; do + if [[ $i == "clean" ]]; then + docker rmi -f $(docker images -a -q) | true + fi +done