Archived
ci(deploy): Auto-Deploy-Runner für Push auf main + reproduzierbarer API-Build
- .gitea/workflows/deploy.yml: deployt bei Push auf main via Host-Runner (git reset --hard origin/main in /opt/build/cockpit, docker compose up -d --build in /opt/stacks/cockpit, Healthcheck auf cockpit-api). - Auto-Migrate: runMigrations() (drizzle-orm Migrator) wird beim API-Start aufgerufen; Schema wird vor dem Listen idempotent aktualisiert. - API-Dockerfile: Workspace-Libs (@cockpit/db, @cockpit/shared) werden jetzt mit Emit kompiliert und main/exports im Image auf dist gebogen. Vorher war das Prod-Image nicht reproduzierbar baubar (Node konnte die TS-Quelle der Libs nicht laden → ERR_MODULE_NOT_FOUND). Dev-Modus und Web-/Vite-Build bleiben unberührt. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
9f3ee13094
commit
3b928d0ad0
5 files changed
+102
-1
No files matched your search
@@ -1,5 +1,6 @@
|
||||
export * from './schema.js';
|
||||
export { createDbClient } from './client.js';
|
||||
export { runMigrations } from './migrate.js';
|
||||
export type { Db, CreateDbClientOptions } from './client.js';
|
||||
|
||||
export const DB_VERSION = '0.0.1';
|
||||
Reference in new issue
Block a user