Add better handling to safe storage pruning step
Some checks failed
Podman Rootless Demo / test-backend (push) Has been skipped
Podman Rootless Demo / test-frontend (push) Successful in 11s
Podman Rootless Demo / build-backend (push) Has been skipped
Podman Rootless Demo / build-frontend (push) Failing after 33s
Podman Rootless Demo / deploy-prod (push) Has been skipped
Some checks failed
Podman Rootless Demo / test-backend (push) Has been skipped
Podman Rootless Demo / test-frontend (push) Successful in 11s
Podman Rootless Demo / build-backend (push) Has been skipped
Podman Rootless Demo / build-frontend (push) Failing after 33s
Podman Rootless Demo / deploy-prod (push) Has been skipped
This commit is contained in:
parent
87be8433c6
commit
852e1bde51
1 changed files with 12 additions and 3 deletions
|
|
@ -210,11 +210,20 @@ jobs:
|
||||||
|
|
||||||
- name: Safe storage pruning
|
- name: Safe storage pruning
|
||||||
run: |
|
run: |
|
||||||
# Stop and remove any running containers first
|
set -x # Enable debug output
|
||||||
podman --remote ps -aq | xargs -r podman --remote rm -f 2>/dev/null || true
|
# List and remove any running containers first
|
||||||
# Then prune system
|
echo "=== Removing running containers ==="
|
||||||
|
podman --remote ps -aq | while read -r container; do
|
||||||
|
echo "Removing container: $container"
|
||||||
|
podman --remote rm -f "$container" || echo "Failed to remove container $container"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "=== Pruning system ==="
|
||||||
podman --remote system prune -f
|
podman --remote system prune -f
|
||||||
|
|
||||||
|
echo "=== Storage status after pruning ==="
|
||||||
|
podman --remote system df
|
||||||
|
|
||||||
- name: Build frontend container image
|
- name: Build frontend container image
|
||||||
run: |
|
run: |
|
||||||
# Create temp directory on larger filesystem
|
# Create temp directory on larger filesystem
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue