attempting to fix frozen deploy step
Some checks failed
Security Tests / security-non-db (push) Successful in 18s
Security Tests / security-db (push) Successful in 22s
Deploy / deploy (push) Failing after 42s

This commit is contained in:
2026-03-02 14:05:52 -06:00
parent cfbda7c3cd
commit 78595a052a
2 changed files with 9 additions and 4 deletions

View File

@@ -29,6 +29,9 @@ jobs:
run: |
set -euo pipefail
# Fail fast if sudo requires interactive password in runner context
sudo -n true
# Deploy directory
APP_DIR=/opt/skymoney
mkdir -p $APP_DIR
@@ -57,11 +60,12 @@ jobs:
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" \
PROD_VOLUME_GUARD_TIMEOUT_SEC="${PROD_VOLUME_GUARD_TIMEOUT_SEC:-20}" \
DOCKER_CMD="sudo -n docker" \
bash ./scripts/guard-prod-volume.sh
# Build and start all services
sudo docker-compose -p skymoney up -d --build
sudo -n docker-compose -p skymoney up -d --build
# Wait for database to be ready
sleep 10
@@ -76,7 +80,7 @@ jobs:
bash ./scripts/backup.sh
# Run Prisma migrations inside the API container
sudo docker-compose -p skymoney exec -T api npx prisma migrate deploy
sudo -n docker-compose -p skymoney exec -T api npx prisma migrate deploy
- name: Reload Nginx
run: sudo systemctl reload nginx