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
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:
parent
0166393767
commit
5fe8dd3d0f
1 changed files with 3 additions and 3 deletions
|
|
@ -218,9 +218,9 @@ jobs:
|
||||||
echo "Found containers: $containers"
|
echo "Found containers: $containers"
|
||||||
for container in $containers; do
|
for container in $containers; do
|
||||||
echo "Attempting to remove container: $container"
|
echo "Attempting to remove container: $container"
|
||||||
# Try to stop first, then remove
|
# Try to stop first with timeout, then remove
|
||||||
podman --remote stop "$container" 2>/dev/null || true
|
timeout 10s podman --remote stop "$container" 2>/dev/null || echo "Timeout or error stopping container $container"
|
||||||
podman --remote rm -f "$container" 2>/dev/null || echo "Warning: Could not remove container $container"
|
timeout 5s podman --remote rm -f "$container" 2>/dev/null || echo "Warning: Could not remove container $container"
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "No containers found to remove"
|
echo "No containers found to remove"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue