feat: add public purchase portal and admin tools
This commit is contained in:
1 parent
c0a6ee3cb0
commit
eb1f68b423
29 files changed
+2851
-163
No files matched your search
Executable
+31
@@ -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
|
||||
Reference in new issue
Block a user