- 1px spacing between status buttons - Rounded corners on all buttons - Invisible spacer for consistent row alignment - Added scripts/deploy.sh for auto-incrementing version on deploy Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
29 lines
595 B
Bash
Executable File
29 lines
595 B
Bash
Executable File
#!/bin/bash
|
|
# Deploy script - increments version and relaunches container
|
|
# Usage: ./scripts/deploy.sh
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
# Extract current version number from templates.go
|
|
CURRENT=$(grep -o '>v[0-9]*<' templates.go | grep -o '[0-9]*' | head -1)
|
|
|
|
if [ -z "$CURRENT" ]; then
|
|
echo "Could not find version number in templates.go"
|
|
exit 1
|
|
fi
|
|
|
|
# Increment version
|
|
NEW=$((CURRENT + 1))
|
|
|
|
# Update templates.go
|
|
sed -i '' "s/>v${CURRENT}</>v${NEW}</" templates.go
|
|
|
|
echo "Version: v${CURRENT} -> v${NEW}"
|
|
|
|
# Rebuild and relaunch
|
|
docker compose up -d --build
|
|
|
|
echo "Deployed v${NEW}"
|