From 72051230436832349e8e7475f8827084fd527816 Mon Sep 17 00:00:00 2001 From: gewuyou Date: Fri, 9 May 2025 11:52:34 +0800 Subject: [PATCH] =?UTF-8?q?ci(deploy):=20=E6=B7=BB=E5=8A=A0=E6=B8=85?= =?UTF-8?q?=E7=90=86=E6=97=A0=E6=A0=87=E7=AD=BE=E9=95=9C=E5=83=8F=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在部署流程结束后增加清理无标签镜像的步骤 - 使用 docker image prune -f 命令快速清理无标签镜像 --- .gitea/workflows/deploy.test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.test.yml b/.gitea/workflows/deploy.test.yml index e0ae175..fcd3933 100644 --- a/.gitea/workflows/deploy.test.yml +++ b/.gitea/workflows/deploy.test.yml @@ -131,4 +131,8 @@ jobs: docker compose -f ${COMPOSE_FILE} up -d echo "=== 服务状态检查 ===" - docker compose -f ${COMPOSE_FILE} ps \ No newline at end of file + docker compose -f ${COMPOSE_FILE} ps + - name: 🧼 Cleanup Dangling Images + run: | + echo "开始清理无标签镜像..." + docker image prune -f \ No newline at end of file