mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 11:46:35 +00:00
down_act_outer.sh is a best-effort pre-clean (set +e), but its last statement (docker rm -f) can race act's own --rm finalize and return non-zero, so the script exited non-zero and aborted swarm-zombie before the deploy. Force exit 0. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
16 lines
480 B
Bash
Executable File
16 lines
480 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set +e
|
|
|
|
# Match act's outer-runner name prefix, not the image: ACT_PLATFORM_IMAGE varies the ancestor.
|
|
ids="$(docker ps -aq --filter "name=^act-")"
|
|
if [ -n "${ids}" ]; then
|
|
echo "→ removing act outer container(s): ${ids}"
|
|
# Word-splitting on $ids is intentional: docker rm -f wants each ID as its own argv element.
|
|
# shellcheck disable=SC2086
|
|
docker rm -f ${ids} >/dev/null 2>&1
|
|
else
|
|
echo "→ no act outer container present (nothing to do)"
|
|
fi
|
|
|
|
exit 0
|