Build app package and image only for semver release tags
CI / Deploy / test (push) Successful in 1m30s
CI / Deploy / deploy (push) Skipped

Replace the Docker workflow with a release workflow that runs on
vX.Y.Z[-suffix] tags: tests first, then an app-only package
(plenario-<version>.tar.gz with production vendor/) attached to the Gitea
release and a container image tagged with the semver versions.
Document the release process and the deployment target in the README.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-12 10:24:26 +01:00
1 parent 2e5397bb2f
commit bba877999f
4 files changed
+213 -50

No files matched your search

+9 -2
View File
@@ -351,8 +351,15 @@ sonst bedient er nur einen Request gleichzeitig). Code in `/app`, SQLite in Volu
`SECURITY_SALT` ist Pflicht (Entrypoint bricht sonst ab; `composer install --no-scripts`, damit kein Salt eingebrannt wird).
Der Start ist idempotent (Migrationen + `cache clear_all`). Der Healthcheck prüft eine statische Datei, weil die Host-Prüfung
(`APP_FULL_BASE_URL`) `127.0.0.1` auf echten Seiten mit 400 ablehnt. Betrieb hinter einem TLS-Proxy mit `X-Forwarded-Proto`.
`.gitea/workflows/docker.yml` baut bei Push auf `main` und pusht `:latest` + `:<sha>` in die Gitea-Registry
(Variablen `DOCKER_REPO`, `IMAGE_NAME`, Secret `PAT`). Beispiel: `docker-compose.yml`.
Beispiel: `docker-compose.yml`. Image und App-Paket entstehen nur bei Releases (siehe nächster Absatz).
**Releases (SemVer):** `.gitea/workflows/release.yml` läuft nur bei Tags `vMAJOR.MINOR.PATCH[-suffix]` (kein Build bei normalen
Pushes). Job `test` (PHPUnit + phpcs) gatet `package` und `image`. `package` baut `plenario-<version>.tar.gz` (git archive des Tags,
`composer install --no-dev --no-scripts`, `app_local.php` aus dem Example, leere `tmp/`/`logs/`/`data/`, Datei `VERSION`; nur per Whitelist: bin, config, plugins, resources, src, templates, webroot, index.php, .htaccess, composer-Dateien;
kein tests/CI/Docker/README) + `SHA256SUMS` und hängt sie an das Gitea-Release (wird angelegt bzw. aktualisiert, Changelog = Commit-Betreffs
seit dem letzten Tag, Suffix = Pre-Release). `image` pusht `:<version>`, `:<major>.<minor>`, `:<major>` und `:latest` (die
beiden letzten nicht bei Pre-Releases bzw. `v0.`) in die Gitea-Registry (Variablen `DOCKER_REPO`, `IMAGE_NAME`, Secret `PAT`).
Wer das Paket ändert (z. B. weitere Dateien ausschließen), pflegt den Schritt „Build package“ in dieser Datei.
Produktiv auf dem Server in `config/.env`: `DEBUG=false`, `APP_FULL_BASE_URL`, `SECURITY_SALT`, SMTP
(`SMTP_HOST`, `SMTP_PORT`, `SMTP_USER`, `SMTP_PASSWORD`, `SMTP_TLS` – einzelne Variablen statt URL; `EMAIL_TRANSPORT_DEFAULT_URL` geht weiter als Altlast).