add version managment script

This commit is contained in:
Zimeng Xiong
2025-11-23 07:56:28 -08:00
parent 9bc25a3dc2
commit 0787989496
7 changed files with 169 additions and 6 deletions
+3 -3
View File
@@ -4,7 +4,7 @@ set -e
# Configuration
DOCKER_USERNAME="zimengxiong"
IMAGE_NAME="excalidash"
VERSION=${1:-pre-release}
VERSION=${1:-$(node -e "try { console.log(require('fs').readFileSync('VERSION', 'utf8').trim() + '-dev') } catch { console.log('pre-release') }")}
# Colors for output
RED='\033[0;31m'
@@ -17,8 +17,8 @@ echo -e "${BLUE}===========================================${NC}"
echo -e "${BLUE}ExcaliDash Pre-Release Docker Builder${NC}"
echo -e "${BLUE}===========================================${NC}"
echo ""
echo -e "${YELLOW}⚠️ This will publish images with tag: ${VERSION}${NC}"
echo -e "${YELLOW}⚠️ Pre-release images will NOT update 'latest' tag${NC}"
echo -e "${YELLOW}This will publish images with tag: ${VERSION}${NC}"
echo -e "${YELLOW}Pre-release images will NOT update 'latest' tag${NC}"
echo ""
# Confirm before proceeding