docker-build.yml: build + push :latest only, no cleanup step
Build and Push Docker Image / build (push) Failing after 5s
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user