From eae3b945c3f812dcfac800101d23b506b98a0971 Mon Sep 17 00:00:00 2001 From: dciancu Date: Sat, 15 Jun 2024 15:46:13 +0300 Subject: [PATCH] Fixed clearing of docker buildx cache --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index 58cbc1a..8b1ef01 100755 --- a/build.sh +++ b/build.sh @@ -14,6 +14,7 @@ else if [[ -n "${CIRCLE_BRANCH+x}" ]] && [[ "$CIRCLE_BRANCH" == 'build' ]]; then docker images | grep "$image_name" | tr -s ' ' | cut -d ' ' -f 2 \ | xargs -I {} docker rmi "${image_name}:{}" || true + docker buildx prune -f fi image_tag="${image_name}:latest-${image_arch}" fi