diagnose and fix: removed rm for skymoney data in deploy)
Some checks failed
Security Tests / security-non-db (push) Successful in 19s
Security Tests / security-db (push) Successful in 23s
Deploy / deploy (push) Has been cancelled

This commit is contained in:
2026-03-02 13:56:23 -06:00
parent 503ad3e3f8
commit cfbda7c3cd
7 changed files with 95 additions and 4 deletions

View File

@@ -188,8 +188,19 @@ psql "postgres://<admin-user>:<admin-pass>@127.0.0.1:5432/skymoney" \
1. `docker-compose.yml` pins volume name: `skymoney_pgdata`.
2. Deploy workflow sets `COMPOSE_PROJECT_NAME=skymoney`.
3. Deploy workflow runs `scripts/validate-prod-db-target.sh`.
4. Deploy workflow runs pre-migration `scripts/backup.sh`.
5. Deploy workflow uses `prisma migrate deploy` only.
4. Deploy workflow runs `scripts/guard-prod-volume.sh` and blocks deploy when prod volume is missing/empty.
5. Deploy workflow runs pre-migration `scripts/backup.sh`.
6. Deploy workflow uses `prisma migrate deploy` only.
### Intentional rebuild override
If you intentionally need to initialize an empty production volume (rare), set:
```bash
ALLOW_EMPTY_PROD_VOLUME=1
```
for one deploy run only, then reset it back to `0`.
## Quarterly drill requirement