Skip to content

Commit

Permalink
space optimization, for our huge docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
PicoCreator committed Aug 19, 2023
1 parent 6090ee2 commit 7097921
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,27 @@ jobs:
id-token: write

steps:
# Due to the docker image being > available space on the runner
# we need to do some optimization, to create more space.
# https://github.com/marketplace/actions/maximize-build-disk-space
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 512
swap-size-mb: 1024
temp-reserve-mb: 100
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'

# Get and log the free space
- name: Build
run: |
echo "Free space:"
df -h
- name: Checkout repository
uses: actions/checkout@v3

Expand Down

0 comments on commit 7097921

Please sign in to comment.