Commit Graph

6 Commits

Author SHA1 Message Date
Ronny b273c6aa7e ci: switch to Gitea Container Registry for reliable deploys
Previous pipeline built images locally via Portainer Docker API,
but Docker layer caching produced identical images. Now:
- Build with nocache=1
- Push to Gitea registry (git.home.rm-warpstation.de)
- Compose uses image: from registry instead of build:
- Redeploy with pullImage: true forces fresh container

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 20:18:34 +02:00
Ronny 948f9800d5 ci: Credentials aus Workflow entfernen, Portainer-Config dynamisch lesen
Build & Deploy Tippspiel / build (push) Successful in 17s
Statt Credentials im Workflow hardcoden:
- Compose-File und Env-Vars werden zur Laufzeit aus Portainer gelesen
- Einziges Secret im Workflow: PORTAINER_TOKEN
- Keine sensiblen Daten mehr in git-versionierten Dateien

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-06 13:41:19 +02:00
Ronny 92b68a8b2e ci: curl via apk installieren (Alpine runner hat kein curl)
Build & Deploy Tippspiel / build (push) Successful in 45s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-06 11:48:35 +02:00
Ronny 20f61a0417 fix: Gitea CI/CD und Blank-Page-Fehler behoben
Build & Deploy Tippspiel / build (push) Successful in 15s
- Helmet CSP: upgrade-insecure-requests und HSTS für HTTP-Deployments deaktiviert
  (war die Ursache der leeren Seite - Browser versuchte JS über HTTPS zu laden)
- Backend: statische Dateien werden jetzt in allen NODE_ENV-Modi serviert
- Frontend: IS_DEV erkennt auch VITE_TEST_MODE=true (Build-Zeit Variable)
- Dockerfile: VITE_TEST_MODE=true beim Vite-Build, NODE_ENV=development
- docker-compose.yml: NODE_ENV=development, CORS_ORIGIN=*
- Gitea Workflow: Auth-Token für git clone, Build via Portainer API statt lokaler Docker CLI

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-06 11:46:56 +02:00
Ronny 41a21b5606 fix: use shell-based checkout for self-hosted runner
Build & Deploy Tippspiel / build (push) Has been cancelled
actions/checkout@v4 needs Node.js which isn't available in host mode.
Use git clone directly instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 10:09:33 +02:00
Ronny 832a3d3677 feat: add Gitea Actions CI pipeline for Docker build
Build & Deploy Tippspiel / build (push) Failing after 5s
Builds Docker image on push to main via self-hosted runner on NAS.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 10:08:01 +02:00