Align CI/CD with the platform kit: reusable node-ci, job-network sidecars, and capped bake/migrate CD.
This commit is contained in:
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/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[*]}"
|
||||
Reference in New Issue
Block a user