feat: build and publish release images from version tags

Tagging v* builds both images on Gitea Actions and pushes them to the instance
registry, then smoke-tests the published stack. The frontend read its backend
URL through import.meta.env, which Vite resolves at build time, so an image
could only point at whatever the build host had; it now reads it at runtime.
This commit is contained in:
2026-08-17 15:05:18 -04:00
parent 0220f2d970
commit b70ed5cb51
8 changed files with 397 additions and 8 deletions
+5 -1
View File
@@ -1 +1,5 @@
export const BACKEND_API_URL = import.meta.env.VITE_BACKEND_API_URL || 'http://localhost:8000';
import { env } from '$env/dynamic/private';
// Read at runtime, not build time: `import.meta.env` is substituted by Vite during the build, so a
// published image would carry whatever the build host had — see docs/ci-release-pipeline.md.
export const BACKEND_API_URL = env.VITE_BACKEND_API_URL || 'http://localhost:8000';