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
This commit is contained in:
28
test/manualdocker/03-cleanup.sh
Executable file
28
test/manualdocker/03-cleanup.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/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 ""
|
Reference in New Issue
Block a user