feat: update package versions to 1.0.0 and enhance release script for secondary remote support

This commit is contained in:
Daniel Volz
2025-12-29 22:33:23 +01:00
parent 263033adfd
commit f341a2aad2
3 changed files with 17 additions and 3 deletions
+15 -1
View File
@@ -18,6 +18,9 @@ YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
# Secondary remote (self-hosted git)
SECONDARY_REMOTE="git@git.danielvolz.org:daniel/medassist-ng.git"
# Get script directory and project root
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
@@ -96,10 +99,21 @@ echo -e "${BLUE}Creating tag v${NEW_VERSION}...${NC}"
git tag -a "v${NEW_VERSION}" -m "Release v${NEW_VERSION}"
# Push
echo -e "${BLUE}Pushing to origin...${NC}"
echo -e "${BLUE}Pushing to origin (GitHub)...${NC}"
git push origin main
git push origin "v${NEW_VERSION}"
# Ask about secondary remote
echo ""
read -p "Also push to git.danielvolz.org? (y/N) " -n 1 -r
echo ""
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo -e "${BLUE}Pushing to git.danielvolz.org...${NC}"
git push "$SECONDARY_REMOTE" main
git push "$SECONDARY_REMOTE" "v${NEW_VERSION}"
echo -e "${GREEN}✓ Pushed to git.danielvolz.org${NC}"
fi
echo ""
echo -e "${GREEN}✓ Released v${NEW_VERSION}${NC}"
echo -e "${BLUE}GitHub Actions will now build and publish Docker images.${NC}"