From ab2855e8327767ac3b664c5c231a21eb73454cb5 Mon Sep 17 00:00:00 2001 From: tefirman Date: Tue, 29 Oct 2024 12:55:55 -0400 Subject: [PATCH] Adding docker prune after each build and push --- .github/workflows/docker-images.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docker-images.yml b/.github/workflows/docker-images.yml index 62aea63..0fdb79b 100644 --- a/.github/workflows/docker-images.yml +++ b/.github/workflows/docker-images.yml @@ -40,6 +40,7 @@ jobs: IFS="/" read -ra toolarr <<< "$changed_file" IFS="_" read -ra tagarr <<< "$changed_file" docker build --platform linux/amd64 -t ghcr.io/getwilds/${toolarr[0]}:${tagarr[-1]} -f ${changed_file} --push . + docker system prune -af sleep 5 fi done @@ -57,6 +58,7 @@ jobs: IFS="/" read -ra toolarr <<< "$changed_file" IFS="_" read -ra tagarr <<< "$changed_file" docker build --platform linux/amd64 -t getwilds/${toolarr[0]}:${tagarr[-1]} -f ${changed_file} --push . + docker system prune -af sleep 5 fi done