ci: run tests and audit on every push, deploy exact commit with health check
- npm audit fix (multer 2.5.0, body-parser, qs, proxy-addr): 0 vulnerabilities - engines node >=22.9 and .nvmrc (prod runs Node 26) - GET /healthz for deployment checks - workflow: check job (npm ci, npm test, npm audit) on every push; deploy only on main after checks, with pinned host key, BatchMode and exact commit SHA - ops/deploy-gameservers-control.sh: lock, refuse dirty tree, fast-forward to the commit, npm ci --omit=dev, wait for /healthz, roll back on failure - stop tracking storage/servers.json (prod storage now lives outside the repo) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
655cf655da
commit
0a7bfc183d
10 changed files with 249 additions and 129 deletions
|
|
@ -4,6 +4,9 @@
|
|||
"description": "Interface web de controle des serveurs de jeux",
|
||||
"type": "module",
|
||||
"main": "src/server.js",
|
||||
"engines": {
|
||||
"node": ">=22.9"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node --env-file-if-exists=.env src/server.js",
|
||||
"dev": "NODE_ENV=development node --env-file-if-exists=.env src/server.js",
|
||||
|
|
@ -11,7 +14,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"express": "^5.1.0",
|
||||
"multer": "^2.0.2"
|
||||
"multer": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue