mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-19 05:37:53 +00:00
Run image cleanup in parallel
Change-type: patch
This commit is contained in:
parent
39e8741402
commit
34af6e9b2a
@ -38,10 +38,6 @@ if [ -z "$ARCH" ] || [ -z "$TAG" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
function tryRemove() {
|
||||
docker rmi $1 || true
|
||||
}
|
||||
|
||||
# This is the supervisor image we will produce
|
||||
TARGET_IMAGE=balena/$ARCH-supervisor:$TAG$DEBUG
|
||||
|
||||
@ -106,12 +102,11 @@ fi
|
||||
# Wait for any ongoing deploys
|
||||
wait
|
||||
if [ "$CLEANUP" = "true" ]; then
|
||||
tryRemove $TARGET_IMAGE
|
||||
|
||||
tryRemove $NODE_IMAGE
|
||||
tryRemove $NODE_BUILD_IMAGE
|
||||
|
||||
tryRemove $TARGET_CACHE
|
||||
tryRemove $NODE_BUILD_CACHE
|
||||
tryRemove $NODE_CACHE
|
||||
docker rmi \
|
||||
$TARGET_IMAGE \
|
||||
$NODE_IMAGE \
|
||||
$NODE_BUILD_IMAGE \
|
||||
$TARGET_CACHE \
|
||||
$NODE_BUILD_CACHE \
|
||||
$NODE_CACHE
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user