fix(deploy): déclencher après CI et vérifier le commit déployé
All checks were successful
CI / Lint, Test & Build (push) Successful in 12m13s
All checks were successful
CI / Lint, Test & Build (push) Successful in 12m13s
Le job deploy référençait needs:[ci] dans un autre workflow (inefficace sur Gitea). Déclenchement via workflow_run après CI réussie, empreinte GIT_COMMIT dans l'image, endpoint /api/build-info et health check sur 127.0.0.1:3000 avec comparaison du SHA attendu. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
10
memento-note/app/api/build-info/route.ts
Normal file
10
memento-note/app/api/build-info/route.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { NextResponse } from 'next/server'
|
||||
|
||||
export const dynamic = 'force-dynamic'
|
||||
|
||||
/** Public build fingerprint for deploy verification (no secrets). */
|
||||
export async function GET() {
|
||||
return NextResponse.json({
|
||||
commit: process.env.GIT_COMMIT ?? 'unknown',
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user