diff --git a/.github/actions/pull_images/action.yml b/.github/actions/pull_images/action.yml index ca1c21bb661..f135b88f80f 100644 --- a/.github/actions/pull_images/action.yml +++ b/.github/actions/pull_images/action.yml @@ -22,6 +22,18 @@ inputs: runs: using: composite steps: + - name: Free Disk Space + uses: endersonmenezes/free-disk-space@7901478139cff6e9d44df5972fd8ab8fcade4db1 # v3.2.2 + with: + remove_android: false # Takes a long time to remove even with rmz + remove_dotnet: true # Pretty quick and saves a lot + remove_haskell: true # Extremely quick and saves a lot + remove_tool_cache: false # Decent savings but not fast enough + remove_packages: false # By far the slowest option + remove_packages_one_command: true + remove_folders: "/usr/share/swift /usr/share/az* /usr/local/share/chromium" + rm_cmd: "rmz" # Use 'rmz' for faster deletion (default: 'rm') + rmz_version: "3.1.1" # Required when rm_cmd is 'rmz' - name: Get image list shell: bash run: | @@ -37,10 +49,6 @@ runs: username: ${{ inputs.dockerhub_username }} password: ${{ inputs.dockerhub_token }} - - name: clean-up - shell: bash - run: sudo rm -rf /usr/local/lib/android - #retry - name: Pull uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2 @@ -50,7 +58,3 @@ runs: timeout_minutes: 15 retry_wait_seconds: 10 max_attempts: 3 - - - name: Disk space usage - shell: bash - run: df -h