ci: prune after building

Without the cleanup the system is full after a single day...

Signed-off-by: Paul Spooren <mail@aparcar.org>
pull/146/head
Paul Spooren 2024-07-31 18:41:00 +02:00
parent 3724e26fa1
commit 26cae77722
1 changed files with 9 additions and 0 deletions

View File

@ -230,6 +230,9 @@ jobs:
TARGET=${{ matrix.target }}
FILE_HOST=${{ needs.generate_matrix.outputs.file_host }}
- name: Cleanup Docker containers
run: docker system prune -f
push-sdk-container:
name: SDK
runs-on: ${{ (github.event_name != 'pull_request') && fromJSON('[ "docker-builder", "Linux", "X64" ]') || 'ubuntu-latest' }}
@ -347,6 +350,9 @@ jobs:
FILE_HOST=${{ needs.generate_matrix.outputs.file_host }}
labels: ${{ steps.meta_ref.outputs.labels }}
- name: Cleanup Docker containers
run: docker system prune -f
push-rootfs-container:
name: RootFS
runs-on: ${{ (github.event_name != 'pull_request') && fromJSON('[ "docker-builder", "Linux", "X64" ]') || 'ubuntu-latest' }}
@ -449,3 +455,6 @@ jobs:
build-args: ${{ steps.build_args.outputs.args }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/${{ matrix.arch }}
- name: Cleanup Docker containers
run: docker system prune -f