Files
Trent e2e70fcb3b
CI / changes (push) Successful in 28s
CI / frontend (push) Failing after 0s
CI / backend (push) Failing after 5m16s
Align CI/CD with the platform kit: reusable node-ci, job-network sidecars, and capped bake/migrate CD.
2026-09-30 18:18:56 +08:00

26 lines
529 B
Bash
Executable File

#!/usr/bin/env bash
# Tear down containers started by scripts/ci-start-sidecars.sh.
set -euo pipefail
names=(
"${CI_PG_NAME:-}"
"${CI_RMQ_NAME:-}"
"${CI_REDIS_NAME:-}"
"${CI_KAFKA_NAME:-}"
"${CI_ES_NAME:-}"
"${CI_MINIO_NAME:-}"
)
to_rm=()
for n in "${names[@]}"; do
[ -n "$n" ] && to_rm+=( "$n" )
done
if [ "${#to_rm[@]}" -eq 0 ]; then
echo "ci-stop-sidecars: no CI_*_NAME vars set — nothing to remove"
exit 0
fi
docker rm -f "${to_rm[@]}" 2>/dev/null || true
echo "ci-stop-sidecars: removed ${to_rm[*]}"