diff --git a/.github/workflows/image_publishing.yml b/.github/workflows/image_publishing.yml index 27e4166..afff2d8 100644 --- a/.github/workflows/image_publishing.yml +++ b/.github/workflows/image_publishing.yml @@ -13,6 +13,19 @@ jobs: - name: Checkout code uses: actions/checkout@v3 + - name: Free disk space + run: | + echo "Initial disk usage:" + df -h + + sudo rm -rf /usr/share/dotnet + sudo rm -rf /usr/local/lib/android + sudo rm -rf /opt/ghc + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + + echo "After cleanup:" + df -h + - name: Docker meta id: meta @@ -40,3 +53,10 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} platforms: linux/amd64,linux/arm64 + no-cache: true + + - name: Cleanup Docker + if: always() + run: | + docker system prune -af || true + df -h