docker-build.yml: build + push :latest only, no cleanup step
Build and Push Docker Image / build (push) Failing after 5s

Operator preference: build and push the :latest image to the registry and
leave it; no per-build host cleanup (handle orphan images separately).
This commit is contained in:
2026-06-30 07:07:14 -05:00
parent ca96e3461f
commit e5f2581237
-10
View File
@@ -26,13 +26,3 @@ jobs:
IMAGE="registry.alwisp.com/${{ gitea.repository }}" IMAGE="registry.alwisp.com/${{ gitea.repository }}"
docker build -t "${IMAGE}:latest" . docker build -t "${IMAGE}:latest" .
docker push "${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