Skip to content

Commit

Permalink
clean up docker to free space
Browse files Browse the repository at this point in the history
  • Loading branch information
wukongdaily authored Jun 23, 2024
1 parent e4365f1 commit 3d76d51
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/amd64.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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 }}"
Expand Down

0 comments on commit 3d76d51

Please sign in to comment.