feat: add public purchase portal and admin tools
Deploy Backend via Git / deploy (push) Failing after 1m0s
Deploy Frontend via Git / build-and-deploy (push) Failing after 1m0s

This commit is contained in:
leeexin committed 2026-03-28 17:55:03 +08:00
1 parent c0a6ee3cb0
commit eb1f68b423
29 files changed
+2851 -163

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
#!/bin/bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
REGISTRY="${REGISTRY:-localhost:9988}"
NAMESPACE="${NAMESPACE:-leeexin}"
VERSION="${VERSION:-latest}"
BACKEND_IMAGE="${REGISTRY}/${NAMESPACE}/license-manager-backend:${VERSION}"
FRONTEND_IMAGE="${REGISTRY}/${NAMESPACE}/license-manager-frontend:${VERSION}"
echo "Building backend and frontend images..."
cd "$ROOT_DIR"
docker compose build backend frontend
echo "Tagging images..."
docker tag license-manager-backend:latest "$BACKEND_IMAGE"
docker tag license-manager-frontend:latest "$FRONTEND_IMAGE"
echo "Pushing $BACKEND_IMAGE"
docker push "$BACKEND_IMAGE"
echo "Pushing $FRONTEND_IMAGE"
docker push "$FRONTEND_IMAGE"
cat <<EOF
Push completed.
Backend: $BACKEND_IMAGE
Frontend: $FRONTEND_IMAGE
EOF