chore: implement hourly reset CronJob for prod and UAT

- Add ALLOW_RESET env var override to reset.ts safety guard
- Add reset Docker build target to Dockerfile
- Add reset image build step to CI docker job
- Add reset image tag update to CD job dev overlay update

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit was merged in pull request #240.
This commit is contained in:
Flea Flicker
2026-04-07 20:01:56 +00:00
parent 0fe10434e1
commit 9be6a87105
3 changed files with 20 additions and 2 deletions
+2 -2
View File
@@ -16,8 +16,8 @@ async function reset() {
process.exit(1);
}
if (process.env.NODE_ENV === "production") {
console.error("[FATAL] db:reset must not be run in production.");
if (process.env.NODE_ENV === "production" && process.env.ALLOW_RESET !== "true") {
console.error("[FATAL] db:reset must not be run in production without ALLOW_RESET=true.");
process.exit(1);
}