Skip to content

Commit

Permalink
Free up space on runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
zackelia committed Nov 22, 2023
1 parent 194213f commit 645be67
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ jobs:
runs-on: ubuntu-latest

steps:

- name: Free disk space
run: |
df . -h
sudo docker rmi $(docker image ls -aq) >/dev/null 2>&1 || true
sudo rm -rf \
/usr/share/dotnet /usr/local/lib/android /opt/ghc \
/usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \
/usr/lib/jvm /usr/local/share/boost "$AGENT_TOOLSDIRECTORY" || true
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag amd-diffusion:$(date +%s)
7 changes: 7 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Free disk space
run: |
sudo rm -rf \
/usr/share/dotnet /usr/local/lib/android /opt/ghc \
/usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \
/usr/lib/jvm /usr/local/share/boost "$AGENT_TOOLSDIRECTORY" || true
# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
Expand Down

0 comments on commit 645be67

Please sign in to comment.