Skip to content

Commit

Permalink
Add clean
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Aug 4, 2023
1 parent 7d8a949 commit 8d69472
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/fiware/image-clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,18 @@ function clone {
}

for i in "$@" ; do
if [[ $i == "docker" ]]; then

if [[ $i == "docker" ]]; then
clone "$SOURCE" "$VERSION" "$DOCKER_TARGET" true
fi
if [[ $i == "quay" ]]; then
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

0 comments on commit 8d69472

Please sign in to comment.