v35: Add git commit/push to deploy script

This commit is contained in:
primal
2026-01-30 15:58:49 -05:00
parent 8192bce301
commit a5fe2962c3
5 changed files with 67 additions and 28 deletions
+16 -2
View File
@@ -1,6 +1,6 @@
#!/bin/bash
# Deploy script - increments version and relaunches container
# Usage: ./scripts/deploy.sh
# Deploy script - increments version, commits, pushes, and relaunches container
# Usage: ./scripts/deploy.sh [optional commit message]
set -e
@@ -22,6 +22,20 @@ sed -i '' "s/>v${CURRENT}</>v${NEW}</" templates.go
echo "Version: v${CURRENT} -> v${NEW}"
# Build commit message
if [ -n "$1" ]; then
COMMIT_MSG="v${NEW}: $1"
else
COMMIT_MSG="v${NEW}"
fi
# Commit and push
git add -A
git commit -m "$COMMIT_MSG"
git push
echo "Committed: $COMMIT_MSG"
# Rebuild and relaunch
docker compose up -d --build