From bcf2fb7ef4e64bd2b1e5e24f20476ced012c33a3 Mon Sep 17 00:00:00 2001
From: gifrerenom <lluis.gifre@cttc.es>
Date: Wed, 3 Jan 2024 15:13:49 +0000
Subject: [PATCH] Deploy scripts:

- Added prune of docker buildx dandling images
---
 deploy/tfs.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/deploy/tfs.sh b/deploy/tfs.sh
index f6360eb20..3a01606ce 100755
--- a/deploy/tfs.sh
+++ b/deploy/tfs.sh
@@ -574,3 +574,9 @@ if [[ "$TFS_COMPONENTS" == *"monitoring"* ]] && [[ "$TFS_COMPONENTS" == *"webui"
 
     printf "\n\n"
 fi
+
+if [ "$DOCKER_BUILD" == "docker buildx build" ]; then
+    echo "Pruning Docker Buildx Cache..."
+    docker buildx prune --force
+    printf "\n\n"
+fi
-- 
GitLab