Umzug nach GitLab: CI/CD fuer Tests, Images, APK, Pages und Releases

gitea.com hat keinen Actions-Runner, also gab es dort seit dem Umzug weder
Container-Images noch einen gebauten APK noch gruene Tests auf Merge Requests.
GitLab kann alles vier, also zieht das Projekt dorthin um.

.gitlab-ci.yml deckt die komplette Kette ab:
- test: Frontend-Suite (346 Tests), Locale-Checks, Fatigue-Probe, MCP-Suite
- build: api- und web-Image nach registry.gitlab.com/duartesantos8/opengym/*,
  auf v*-Tags amd64+arm64 mit latest/X.Y/X.Y.Z, sonst amd64 als edge
- package: signierter APK (zipalign + apksigner) plus Upload in die Generic
  Package Registry; der Key liegt in geschuetzten CI-Variablen und existiert
  damit nur auf main und v*-Tags
- deploy: der Browser-Demo-Build auf GitLab Pages
- release: GitLab-Release mit dem passenden CHANGELOG-Abschnitt und Links auf
  APK und Images

GitHub konnte "Tag gepusht" von "Release veroeffentlicht" unterscheiden und hat
Images nur aus letzterem gebaut (Issue #87). GitLab kann das nicht - dort ist die
Tag-Pipeline das, was das Release anlegt. Die Regel steht deshalb als Kommentar
im CI-File, und v*-Tags sind geschuetzt.

Ausserdem: Issue-/MR-Vorlagen unter .gitlab/, und saemtliche Repo-Links in
README, Docs, App, Dockerfile-Labels, docker-compose und Website zeigen auf
GitLab. site.js liest Sterne und Releases jetzt aus der GitLab-API (andere
Feldnamen, deshalb neue sessionStorage-Keys). SECURITY.md hat wieder einen
privaten Meldeweg: ein vertrauliches Issue.

.github/ und .gitea/ bleiben liegen - Spiegel bzw. fuer den Tag, an dem das
GitHub-Konto zurueckkommt.
This commit is contained in:
Duarte Santos committed 2026-08-23 20:10:07 +02:00
1 parent 8b99a644ed
commit 925190109f
22 files changed
+562 -98

No files matched your search

+2 -2
View File
@@ -11,11 +11,11 @@ Not in this folder (added at deploy time):
- `openGym.apk` — the signed release build (see `../docs/MOBILE.md`)
- `demo/` — the browser-only demo build of the app, embedded in the `#demo` section and
reachable on its own at `/demo/`. Built from `../frontend` with `VITE_DEMO=1` and the
jsDelivr media bases (see the recipe in `../.github/workflows/pages.yml`), so the ~140 MB
jsDelivr media bases (see the `pages` job in `../.gitlab-ci.yml`), so the ~140 MB
of exercise media stays out of it. It has to live on this host: the site frames it, and
`X-Frame-Options: SAMEORIGIN` would block it from anywhere else.
`site.js` fetches the star/issue counts and the release timeline from the public
gitea.com API at view time. It pointed at api.github.com until that account was
gitlab.com API at view time. It pointed at api.github.com until that account was
suspended; the two URLs go back once it is restored, together with the notice
block at the top of `index.html` and the demo iframe.