diff --git a/.github/fiware/image-clone.sh b/.github/fiware/image-clone.sh index 3ff6fdf66..93856e81c 100755 --- a/.github/fiware/image-clone.sh +++ b/.github/fiware/image-clone.sh @@ -30,4 +30,10 @@ for i in "$@" ; do clone "$SOURCE" "$VERSION" "$QUAY_TARGET" true fi echo "" +done + +for i in "$@" ; do + if [[ $i == "clean" ]]; then + docker rmi -f $(docker images -a -q) | true + fi done \ No newline at end of file