From 273d02eed63d912fe5660c493a83d5c8f2c9c757 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Fri, 29 Sep 2023 15:35:52 -0400 Subject: [PATCH] Trying Kahini's trick. --- .github/workflows/docker-image.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 8e56dd5..259189e 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -39,6 +39,16 @@ jobs: type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} + - name: Clean unnecessary files to save space + run: | + docker rmi `docker images -q` + sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/sudo apt/sources.list.d + sudo apt -y autoremove --purge + sudo apt -y autoclean + sudo apt clean + rm --recursive --force "$AGENT_TOOLSDIRECTORY" + df -h + - name: Build and push Docker image uses: docker/build-push-action@v4 with: