Try adding timeout
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 32s
Podman Rootless Demo / deploy-prod (push) Has been skipped

This commit is contained in:
continuist 2025-09-21 13:59:15 -04:00
parent 0166393767
commit 5fe8dd3d0f

View file

@ -218,9 +218,9 @@ jobs:
echo "Found containers: $containers"
for container in $containers; do
echo "Attempting to remove container: $container"
# Try to stop first, then remove
podman --remote stop "$container" 2>/dev/null || true
podman --remote rm -f "$container" 2>/dev/null || echo "Warning: Could not remove container $container"
# Try to stop first with timeout, then remove
timeout 10s podman --remote stop "$container" 2>/dev/null || echo "Timeout or error stopping container $container"
timeout 5s podman --remote rm -f "$container" 2>/dev/null || echo "Warning: Could not remove container $container"
done
else
echo "No containers found to remove"