Files
nupst/test/manualdocker/03-cleanup.sh
Juergen Kunz a63ec16d63
All checks were successful
CI / Type Check & Lint (push) Successful in 6s
CI / Build Test (Current Platform) (push) Successful in 8s
CI / Build All Platforms (push) Successful in 48s
Release / build-and-release (push) Successful in 37s
fix(version): make version programmatic by reading from deno.json
- Replace hardcoded version in 00_commitinfo_data.ts
- Now dynamically imports deno.json and reads version
- Version will auto-update when deno.json is changed
- Fixes version showing 3.1.2 instead of 4.0.0

test: add Docker test scripts for v3→v4 migration
- 01-setup-v3-container.sh: Creates systemd container with v3
- 02-test-v3-to-v4-migration.sh: Tests migration (now fixed)
- 03-cleanup.sh: Removes test container
- README.md: Complete documentation

Tested: Version now correctly shows 4.0.0
2025-10-19 14:26:53 +00:00

29 lines
614 B
Bash
Executable File

#!/bin/bash
#
# Cleanup test container
#
set -e
CONTAINER_NAME="nupst-test-v3"
echo "================================================"
echo " Cleanup NUPST Test Container"
echo "================================================"
echo ""
if docker ps -a --format '{{.Names}}' | grep -q "^${CONTAINER_NAME}$"; then
echo "→ Stopping container..."
docker stop ${CONTAINER_NAME} 2>/dev/null || true
echo "→ Removing container..."
docker rm ${CONTAINER_NAME} 2>/dev/null || true
echo ""
echo "✓ Container ${CONTAINER_NAME} removed"
else
echo "Container ${CONTAINER_NAME} not found"
fi
echo ""