Skip to content

Commit 4a73db7

Browse files
authored
πŸ”¨ Delete the beta build process.
2 parents 6ae6067 + e9c9372 commit 4a73db7

File tree

2 files changed

+17
-40
lines changed

2 files changed

+17
-40
lines changed

β€Ždocker/.env.betaβ€Ž

Lines changed: 0 additions & 9 deletions
This file was deleted.

β€Ždocker/deploy.shβ€Ž

Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,6 @@ select_deployment_mode() {
369369
echo " 1) πŸ› οΈ Development mode - Expose all service ports for debugging"
370370
echo " 2) πŸ—οΈ Infrastructure mode - Only start infrastructure services"
371371
echo " 3) πŸš€ Production mode - Only expose port 3000 for security"
372-
echo " 4) πŸ§ͺ Beta mode - Use develop branch images (from .env.beta)"
373372

374373
if [ -n "$MODE_CHOICE" ]; then
375374
mode_choice="$MODE_CHOICE"
@@ -393,11 +392,6 @@ select_deployment_mode() {
393392
disable_dashboard
394393
echo "βœ… Selected production mode πŸš€"
395394
;;
396-
4)
397-
export DEPLOYMENT_MODE="beta"
398-
export COMPOSE_FILE_SUFFIX=".yml"
399-
echo "βœ… Selected beta mode πŸ§ͺ"
400-
;;
401395
*)
402396
export DEPLOYMENT_MODE="development"
403397
export COMPOSE_FILE_SUFFIX=".yml"
@@ -751,34 +745,26 @@ create_default_admin_user() {
751745
}
752746

753747
choose_image_env() {
754-
if [ "$DEPLOYMENT_MODE" = "beta" ]; then
755-
echo "🌐 Beta Mode: using .env.beta for image sources."
756-
source .env.beta
757-
echo ""
758-
echo "--------------------------------"
759-
echo ""
748+
if [ -n "$IS_MAINLAND" ]; then
749+
is_mainland="$IS_MAINLAND"
750+
echo "🌏 Using is_mainland from argument: $is_mainland"
760751
else
761-
if [ -n "$IS_MAINLAND" ]; then
762-
is_mainland="$IS_MAINLAND"
763-
echo "🌏 Using is_mainland from argument: $is_mainland"
764-
else
765-
read -p "🌏 Is your server network located in mainland China? [Y/N] (default N): " is_mainland
766-
fi
767-
768-
# Sanitize potential Windows CR in input
769-
is_mainland=$(sanitize_input "$is_mainland")
770-
if [[ "$is_mainland" =~ ^[Yy]$ ]]; then
771-
echo "🌐 Detected mainland China network, using .env.mainland for image sources."
772-
source .env.mainland
773-
else
774-
echo "🌐 Using general image sources from .env.general."
775-
source .env.general
776-
fi
752+
read -p "🌏 Is your server network located in mainland China? [Y/N] (default N): " is_mainland
753+
fi
777754

778-
echo ""
779-
echo "--------------------------------"
780-
echo ""
755+
# Sanitize potential Windows CR in input
756+
is_mainland=$(sanitize_input "$is_mainland")
757+
if [[ "$is_mainland" =~ ^[Yy]$ ]]; then
758+
echo "🌐 Detected mainland China network, using .env.mainland for image sources."
759+
source .env.mainland
760+
else
761+
echo "🌐 Using general image sources from .env.general."
762+
source .env.general
781763
fi
764+
765+
echo ""
766+
echo "--------------------------------"
767+
echo ""
782768
}
783769

784770
main_deploy() {

0 commit comments

Comments
Β (0)