From 225dcb1a5c057a8aeaf9175e93325b7013612cf7 Mon Sep 17 00:00:00 2001 From: sanchayan721 Date: Wed, 30 Aug 2023 00:20:06 +0200 Subject: [PATCH] test --- .github/workflows/staging.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index f3a083b..299dbd9 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -31,15 +31,12 @@ jobs: # Calculate Docker cache size in bytes CACHE_SIZE=$(docker images --filter "dangling=true" -q --no-trunc | xargs -r docker inspect --format='{{.Size}}' | awk '{s+=$1} END {print s}') - # Convert 2GB to bytes (2 * 1024 * 1024 * 1024) - # LIMIT=2147483648 - # Convert 40MB to bytes (40 * 1024 * 1024) - LIMIT= 41943040 + LIMIT=41943040 # Check if cache size exceeds the limit and prune if necessary if [ "$CACHE_SIZE" -gt "$LIMIT" ]; then - echo "Cache size exceeded 2GB. Cleaning..." + echo "Cache size exceeded 40MB. Cleaning..." docker system prune -af else echo "Cache size is within limit."