v21: Button spacing and deploy script
- 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>
This commit is contained in:
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/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}"
|
||||
Reference in New Issue
Block a user