From 3dcb9790101480b782d0aae4e42de0e022cb10b4 Mon Sep 17 00:00:00 2001 From: mrproliu <741550557@qq.com> Date: Thu, 10 Oct 2024 08:27:22 +0800 Subject: [PATCH] Fix the docker push failure --- .github/workflows/publish-docker.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-docker.yaml b/.github/workflows/publish-docker.yaml index 67a7c5c0..a8d27b9f 100644 --- a/.github/workflows/publish-docker.yaml +++ b/.github/workflows/publish-docker.yaml @@ -17,6 +17,7 @@ name: publish-docker on: + pull_request: push: branches: - main @@ -44,11 +45,15 @@ jobs: registry: ${{ env.HUB }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Clean spaces for docker images - run: | - sudo rm -rf /usr/share/dotnet - sudo rm -rf /opt/ghc - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + android: true + dotnet: true + haskell: true + large-packages: true + docker-images: true + swap-storage: true - name: Build and push docker images run: make docker.push \ No newline at end of file