Add Gitea release pipeline and server compose
- .gitea/workflows/release.yaml: on vX.Y.Z tags run checks, build and push the image to the Gitea registry (X.Y.Z, X.Y, latest), create a release from the CHANGELOG section - scripts/release-notes.mjs: extract changelog section, create the release - deploy/compose.yaml: server setup using the released image - APP_VERSION build arg, shown in the header Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c7cb6ed433
commit
30b01d7bca
7 files changed
+203
-1
No files matched your search
@@ -23,6 +23,28 @@ Volumes: `data` (SQLite + hf home, keep on local disk) and `models` (downloaded
|
||||
|
||||
OIDC redirect URI for the client in Pocket ID: `<AUTH_URL>/api/auth/callback/pocket-id`.
|
||||
|
||||
## Releases and deployment
|
||||
|
||||
Pushing a tag `vX.Y.Z` (must equal `version` in `package.json` and have a `## [X.Y.Z]` section in
|
||||
`CHANGELOG.md`) runs `.gitea/workflows/release.yaml` on Gitea Actions:
|
||||
|
||||
1. lint, typecheck, unit tests
|
||||
2. builds the image and pushes `git.linxweiler.xyz/pascallinxweiler/kaname:X.Y.Z`, `:X.Y` and `:latest`
|
||||
3. creates a Gitea release with the CHANGELOG section as notes
|
||||
|
||||
Requirements: an `act_runner` registered for the repo/user with Docker access, and a repo secret
|
||||
`REGISTRY_TOKEN` (personal access token with *package: read and write*).
|
||||
|
||||
On the server, use `deploy/compose.yaml` (pulls the released image instead of building):
|
||||
|
||||
```bash
|
||||
# in a folder with deploy/compose.yaml and a filled-in .env next to it
|
||||
docker compose pull && docker compose up -d
|
||||
```
|
||||
|
||||
Pin a version with `KANAME_VERSION=0.4.0` in `.env`; the running version is shown next to the app
|
||||
name in the header.
|
||||
|
||||
## Local development
|
||||
|
||||
```bash
|
||||
|
||||
Reference in new issue
Block a user