devops: attempt to free space before running docker tests (#11084)

Docker runs fail with "No space left on device" error.
This patch follows advice given here: https://github.com/actions/virtual-environments/issues/2840#issuecomment-790492173
This commit is contained in:
Andrey Lushnikov 2021-12-22 18:13:07 -08:00 committed by GitHub
parent bc78faba70
commit db227e1059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,6 +51,18 @@ jobs:
- run: npm ci - run: npm ci
- run: npm run build - run: npm run build
- run: ./utils/docker/build.sh --${{ matrix.arch }} ${{ matrix.tag }} playwright:localbuild - run: ./utils/docker/build.sh --${{ matrix.arch }} ${{ matrix.tag }} playwright:localbuild
- name: Freeup Space
run: |
pwd
df -h
# Based on the official advice:
# https://github.com/actions/virtual-environments/issues/2840#issuecomment-790492173
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df -h
- name: Launch container - name: Launch container
run: | run: |
docker run \ docker run \