Commit graph

21 commits

Author SHA1 Message Date
Daniel
cd358112aa CI: DISCORD_TOKEN_NOTIFICATIONS + PUBLIC_URL in Deploy-Stage
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 20:59:20 +01:00
Daniel
68783ce040 CI: Electron-Build beschleunigt (~5min → ~2min)
- Custom Image electron-builder:latest (Mono + Docker CLI vorinstalliert)
- pull_policy: if-not-present (lokales Image, kein Registry-Pull)
- GitLab CI Cache für node_modules
- npm/Electron Cache-Verzeichnisse in /cache/
- npm ci --prefer-offline nutzt Cache wenn vorhanden
- before_script entfällt komplett (kein apt-get, kein curl)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 16:35:51 +01:00
Daniel
87b4467995 Feature: Game Library Plugin - Steam Spielebibliothek
- Neues Plugin: game-library mit Steam OpenID 2.0 Login
- Steam GetOwnedGames API zum Abrufen der Spielebibliothek
- Gemeinsame Spiele finden (Schnittmenge mehrerer Bibliotheken)
- Spielesuche ueber alle verbundenen User
- User-Profil mit Spielzeit-Sortierung
- JSON-basierte Persistenz in /data/game-library.json
- Steam API Key als CI/CD Variable konfiguriert
- Frontend: User Cards, Common Games Finder, Suchfunktion

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 23:31:40 +01:00
Daniel
77f62e77e5 Electron build only on shell changes, not every version bump
Electron is a wrapper — web content auto-updates from server.
Shell only needs rebuild when electron/ code changes.
Removed VERSION from electron-build triggers and version sync
from bump-version (no more jq dependency).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 22:14:33 +01:00
Daniel
9d5f177bd5 Merge electron-build + deploy into single job, skip artifacts
Build + deploy in one step via Docker socket (docker cp).
Fixes 413 Request Entity Too Large on artifact upload.
Installs Docker CLI + mono-devel in before_script.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 20:09:24 +01:00
Daniel
73d6049feb Install mono-devel in electron-build CI job
Squirrel maker needs Mono + Wine to create Windows installer on Linux.
Added diagnostic output for Wine/Mono versions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 20:00:40 +01:00
Daniel
0ef2a2899a Electron CI Build + Version Info Modal
CI Pipeline:
- New electron-build stage (electronuserland/builder:wine) builds Windows installer
- New electron-deploy stage copies artifacts to container /data/downloads/
- Triggers on electron/ or VERSION changes + manual trigger
- bump-version now syncs electron/package.json via jq

Version Modal:
- Click version badge to open info modal
- Shows Hub Version, Desktop App Version, Server status
- Hint when versions differ (update available)
- Download link when not using Electron app
- Escape + overlay click to close

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 19:38:37 +01:00
Daniel
987e03a590 Fix bump-version: override alpine/git entrypoint for shell execution
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 15:43:04 +01:00
Daniel
259c87bfd3 Optimize build: Kaniko cache flags, split Dockerfile stages, install-tools script
- Kaniko: --cache-ttl=168h, --snapshot-mode=redo, --compressed-caching=false
- Dockerfile: Split server-build into server-deps + server-build for better layer caching
- Replace rm+reinstall node_modules with npm prune --omit=dev
- Move ffmpeg/yt-dlp install to tools/install-tools.sh (single RUN layer)
- Remove separate ffmpeg-fetch stage and inline curl/yt-dlp install
- Remove $CI_COMMIT_SHA tag destination (unused, saves push time)
- bump-version: alpine/git image instead of alpine + apk add git

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 15:39:01 +01:00
Daniel
4947191cb3 Fix: bump-version Reihenfolge - erst checkout, dann VERSION ändern
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 15:00:28 +01:00
Daniel
83a8382a6c Fix: bump-version git pull --rebase vor Push
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 14:53:19 +01:00
Daniel
dfc88210ce Fix: bump-version fetch+checkout main vor push 2026-03-07 14:30:14 +01:00
Daniel
8edaf93e30 Fix: bump-version Rule auf CI_COMMIT_TITLE statt MESSAGE 2026-03-07 14:19:18 +01:00
Daniel
9689af4d3a Add: Automatische Versionierung via VERSION-Datei
- VERSION-Datei als Single Source of Truth (startet bei 1.5.1)
- CI liest Version aus Datei statt hardcoded
- Patch-Version wird nach Deploy automatisch gebumpt
- Commit mit [skip ci] verhindert Endlosschleife
2026-03-07 14:17:27 +01:00
Daniel
e2ae624690 Fix deploy: login to registry + use internal registry address 2026-03-07 14:07:57 +01:00
Daniel
8bfc2b1b0a Fix: Deploy via Docker-Socket statt SSH
Runner laeuft auf adriahub - nutzt Docker-Socket direkt.
Secrets (Discord Tokens, Admin PWD) als CI-Variablen.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 14:03:37 +01:00
Daniel
0301ace4a0 Add: Auto-Deploy nach erfolgreichem CI Build
- Deploy-Stage in CI: SSH auf adriahub nach Build
- deploy.sh auf adriahub: pull + recreate Container
- Nur auf main Branch, nach erfolgreichem Build

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 14:00:45 +01:00
Daniel
17dcd6073f V1.5.0: Version bump + Download-Button Redesign
- Version auf 1.5.0 in allen Packages, CI, Dockerfile, Electron
- Download-Button im gleichen Design wie Version-Badge (bg-secondary, radius, hover accent)
- CI Registry auf adriahub (192.168.1.100:9080) umgestellt

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 12:38:51 +01:00
d6082f8dcf CI: Fix registry to use port 9080 (same as GitLab) 2026-03-07 11:31:13 +00:00
8bb6cec01b CI: Switch registry to adriahub (192.168.1.100:5050) 2026-03-07 11:24:38 +00:00
Claude Code
ae1c41f0ae Initial commit: Gaming Hub foundation
Plugin-based Discord bot framework with web frontend:
- Core: Discord.js client, SSE broadcast, JSON persistence
- Plugin system: lifecycle hooks (init, onReady, routes, snapshot, destroy)
- Web: React 19 + Vite 6 + TypeScript, tab-based navigation
- Docker: multi-stage build (Node 24, static ffmpeg, yt-dlp)
- GitLab CI: Kaniko with LAN registry caching

Ready for plugin development.
2026-03-05 22:52:13 +01:00