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

@@ -53,8 +53,12 @@ jobs:
# Validate migration target before touching containers
export EXPECTED_PROD_DB_HOST="${EXPECTED_PROD_DB_HOST:-postgres}"
export EXPECTED_PROD_DB_NAME="${EXPECTED_PROD_DB_NAME:-skymoney}"
chmod +x ./scripts/validate-prod-db-target.sh ./scripts/backup.sh
chmod +x ./scripts/validate-prod-db-target.sh ./scripts/guard-prod-volume.sh ./scripts/backup.sh
bash ./scripts/validate-prod-db-target.sh
PROD_DB_VOLUME_NAME="${PROD_DB_VOLUME_NAME:-skymoney_pgdata}" \
ALLOW_EMPTY_PROD_VOLUME="${ALLOW_EMPTY_PROD_VOLUME:-0}" \
DOCKER_CMD="sudo docker" \
bash ./scripts/guard-prod-volume.sh
# Build and start all services
sudo docker-compose -p skymoney up -d --build