From 3d76d51d7995c180f48910c8abcec9f1980d38cc Mon Sep 17 00:00:00 2001 From: wukongdaily <143675923+wukongdaily@users.noreply.github.com> Date: Sun, 23 Jun 2024 10:39:31 +0800 Subject: [PATCH] clean up docker to free space fix: https://github.com/wukongdaily/DockerTarBuilder/issues --- .github/workflows/amd64.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/amd64.yml b/.github/workflows/amd64.yml index a72ef284..869b7a3e 100644 --- a/.github/workflows/amd64.yml +++ b/.github/workflows/amd64.yml @@ -1,12 +1,11 @@ name: x86-64 Pull and Save Docker Image - on: workflow_dispatch: inputs: docker_images: description: '请填写docker镜像名称 多个用英文逗号分开' required: true - default: 'alpine:latest,ubuntu:latest' # 设置默认的 Docker 镜像列表 + default: 'alpine:latest' # 设置默认的 Docker 镜像列表 jobs: pull_and_package: @@ -16,6 +15,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Clean up Docker to free space + run: | + docker system prune -a -f + docker volume prune -f + - name: Pull Docker Images and Package run: | images="${{ github.event.inputs.docker_images }}"