From 7d9edde469332e8ebe53f032294f41247e817d14 Mon Sep 17 00:00:00 2001 From: getwithashish Date: Fri, 9 Aug 2024 12:24:38 +0530 Subject: [PATCH] build: Release unnecessary space before starting to build --- .github/workflows/build-push-docker-image.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-push-docker-image.yml b/.github/workflows/build-push-docker-image.yml index e40324c..3b08353 100644 --- a/.github/workflows/build-push-docker-image.yml +++ b/.github/workflows/build-push-docker-image.yml @@ -25,6 +25,12 @@ jobs: - name: Check disk usage run: du -h + + - name: Release space + run: rm -rf "/usr/local/share/boost" + + - name: Release more space + run: rm -rf "$AGENT_TOOLSDIRECTORY" - name: Build and Push Docker Image uses: docker/build-push-action@v5 @@ -36,11 +42,5 @@ jobs: - name: Check disk usage run: df -h - - name: Release space - run: rm -rf "/usr/local/share/boost" - - - name: Release more space - run: rm -rf "$AGENT_TOOLSDIRECTORY" - - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }} \ No newline at end of file