From e5f2581237658b2977382cb0f7fc54d4d792d416 Mon Sep 17 00:00:00 2001 From: jason Date: Tue, 30 Jun 2026 07:07:14 -0500 Subject: [PATCH] docker-build.yml: build + push :latest only, no cleanup step Operator preference: build and push the :latest image to the registry and leave it; no per-build host cleanup (handle orphan images separately). --- .gitea/workflows/docker-build.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.gitea/workflows/docker-build.yml b/.gitea/workflows/docker-build.yml index 980a799..6a1b27b 100644 --- a/.gitea/workflows/docker-build.yml +++ b/.gitea/workflows/docker-build.yml @@ -26,13 +26,3 @@ jobs: IMAGE="registry.alwisp.com/${{ gitea.repository }}" docker build -t "${IMAGE}:latest" . docker push "${IMAGE}:latest" - - - name: Clean up build images on host - # Builds use the host Docker daemon, so the built image and replaced - # layers stay on the Unraid host unless removed. Drop our tag and prune - # dangling layers to stop orphan images piling up on the array. - if: always() - run: | - IMAGE="registry.alwisp.com/${{ gitea.repository }}" - docker image rm -f "${IMAGE}:latest" 2>/dev/null || true - docker image prune -f 2>/dev/null || true