mirror of
https://github.com/jakeswenson/BitBetter.git
synced 2025-07-12 22:43:27 +00:00
Remove outdated bitbetter images as suggested by Ayitaka
This commit is contained in:
parent
876b0643a3
commit
8e8cbe1717
3
build.sh
3
build.sh
|
@ -23,3 +23,6 @@ docker tag bitbetter/identity bitbetter/identity:latest
|
||||||
docker tag bitbetter/api bitbetter/api:$BW_VERSION
|
docker tag bitbetter/api bitbetter/api:$BW_VERSION
|
||||||
docker tag bitbetter/identity bitbetter/identity:$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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user