Files
mc-ai-bridge/.gitea/workflows/deploy.yml
SysAdmin 6a22a5155b
All checks were successful
Deploy to Docker / deploy (push) Successful in 12s
feat: add GrabCraft blueprints, building helpers, and world state awareness
- Phase 1: Player position (querytarget @s) and testforblock tools
- Phase 2: GrabCraft scraper with LRU cache, 372-block Java-to-Bedrock
  mapping, search and auto-build blueprint tools with dryRun support
- Phase 3: Raise build limit to 5000 (MAX_BUILD_COMMANDS env), add
  progress notifications and build cancellation
- Phase 4: Geometric shape builders (sphere, cylinder, dome, pyramid,
  wall, box) using fill commands for efficiency
- Phase 5: Event buffer 100->1000 (EVENT_BUFFER_SIZE env), add
  getByTypes and getSince query methods
- Phase 6: MCP resources for block ID reference and GrabCraft categories

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-16 22:19:52 +00:00

43 lines
1.2 KiB
YAML

name: Deploy to Docker
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy via SSH
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
password: ${{ secrets.DEPLOY_PASSWORD }}
port: 22
script: |
set -e
APP_DIR="$HOME/mc-ai-bridge"
# First run: clone. Subsequent: pull.
if [ ! -d "$APP_DIR/.git" ]; then
git clone https://git.silverlabs.uk/SilverLABS/mc-ai-bridge.git "$APP_DIR"
else
cd "$APP_DIR"
git fetch origin main
git reset --hard origin/main
fi
cd "$APP_DIR"
# Build and deploy
docker compose down --remove-orphans || true
docker compose build --no-cache
docker compose up -d
# Verify container is running
sleep 5
docker compose ps
echo "--- Health check ---"
curl -sf http://localhost:3002/health || echo "Health check not yet available (container may still be starting)"