Skip to content

Commit b4e4d43

Browse files
committed
GitHub: make Docker build more reliable
Currently the Docker image build regularly fails with "no space left on disk". We try to delete additional files and docker images to try to avoid that error.
1 parent 779cf9d commit b4e4d43

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/docker.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
main:
2626
runs-on: ubuntu-latest
2727
steps:
28+
- name: cleanup space
29+
run: rm -rf /opt/hostedtoolcache
30+
2831
- name: Set up QEMU
2932
uses: lightninglabs/gh-actions/[email protected]
3033

@@ -62,8 +65,11 @@ jobs:
6265
tags: "${{ env.DOCKER_ORG }}/${{ env.DOCKER_REPO }}:${{ env.IMAGE_TAG }}"
6366
build-args: checkout=${{ env.RELEASE_VERSION }}
6467

65-
- name: Clear the build cache
68+
- name: Clear the Docker build cache
6669
run: docker builder prune -a -f
70+
71+
- name: Clear the Docker image cache
72+
run: docker image prune -a -f
6773

6874
- name: Build and push image with /lit path
6975
id: docker_build2

0 commit comments

Comments
 (0)