Skip to content

Commit

Permalink
Publisher: Clean up disk space before building
Browse files Browse the repository at this point in the history
Some images (like slc9-gpu-builder) are too big for the free runner, so
we need to remove some stuff before, mostly unused language packages

Reference for the free disk space:
actions/runner-images#2840

Builder error message:
```
==> docker:    At least 11799MB more space needed on the / filesystem.
```
  • Loading branch information
singiamtel committed Nov 13, 2024
1 parent 7f2d0d4 commit 3dec785
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,19 @@ jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# GitHub seems to install an odd version of docker on the host, so run in a
# container and only connect to the host's docker daemon.
container:
image: ubuntu:22.04
volumes:
# Connect to host's docker daemon so we don't run docker inside docker.
- /var/run/docker.sock:/var/run/docker.sock
runs-on: ubuntu-22.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Some images are too large and we run out of disk space, so try to free some
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@v1.3.1
with:
tool-cache: false

- name: Install prerequisites
run: |
apt update -y
Expand Down

0 comments on commit 3dec785

Please sign in to comment.