Skip to content

Commit 09af7a7

Browse files
authored
Merge pull request #458 from jolelievre/free-space
Add step to free disk space during build
2 parents 66bc225 + bfa379c commit 09af7a7

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,22 @@ jobs:
4444
matrix:
4545
version: ${{ fromJson(needs.list_base_images.outputs.versions) }}
4646
steps:
47+
- name: Free Disk Space (Ubuntu)
48+
uses: jlumbroso/free-disk-space@main
49+
with:
50+
# this might remove tools that are actually needed,
51+
# if set to "true" but frees about 6 GB
52+
tool-cache: false
53+
54+
# all of these default to true, but feel free to set to
55+
# "false" if necessary for your workflow
56+
android: true
57+
dotnet: true
58+
haskell: true
59+
large-packages: true
60+
docker-images: true
61+
swap-storage: true
62+
4763
- name: Login to Docker Hub
4864
uses: docker/login-action@v2
4965
with:
@@ -97,6 +113,22 @@ jobs:
97113
image_has_changed:
98114
- 'images/${{ matrix.ps-version }}/**'
99115
116+
- name: Free Disk Space (Ubuntu)
117+
uses: jlumbroso/free-disk-space@main
118+
with:
119+
# this might remove tools that are actually needed,
120+
# if set to "true" but frees about 6 GB
121+
tool-cache: false
122+
123+
# all of these default to true, but feel free to set to
124+
# "false" if necessary for your workflow
125+
android: true
126+
dotnet: true
127+
haskell: true
128+
large-packages: true
129+
docker-images: true
130+
swap-storage: true
131+
100132
- name: Set up QEMU
101133
if: ${{ (needs.list_base_images.outputs.base_has_changed == 'true' || steps.filter.outputs.image_has_changed == 'true') }}
102134
uses: docker/setup-qemu-action@v3

0 commit comments

Comments
 (0)