Remove outdated bitbetter images as suggested by Ayitaka

This commit is contained in:
Christoph Haas 2020-09-19 23:55:00 +02:00
parent 876b0643a3
commit 8e8cbe1717
1 changed files with 3 additions and 0 deletions

View File

@ -23,3 +23,6 @@ docker tag bitbetter/identity bitbetter/identity:latest
docker tag bitbetter/api bitbetter/api:$BW_VERSION
docker tag bitbetter/identity bitbetter/identity:$BW_VERSION
# Remove old instances of the image after a successful build.
ids=$( docker images bitbetter/* | grep -E -v -- "CREATED|latest|${BW_VERSION}" | awk '{ print $3 }' )
[ -n "$ids" ] && docker rmi $ids