name: Build & Deploy Tippspiel on: push: branches: [main] jobs: build: runs-on: self-hosted steps: - name: Checkout uses: actions/checkout@v4 - name: Build Docker Image run: | docker build -t wm2026-tippspiel:latest -t wm2026-tippspiel:${{ gitea.sha }} . - name: Restart Container run: | docker compose -f /tmp/tippspiel-compose.yml up -d --force-recreate 2>/dev/null || echo "Stack not yet deployed via Portainer"