fix: add explicit alembic migration step to CI pipeline
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 52s
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 52s
Entrypoint migration can fail silently. Now runs explicitly: 1. Wait for postgres 2. alembic upgrade head (explicit, fails the deploy if broken) 3. Wait for backend healthy Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -49,6 +49,9 @@ jobs:
|
|||||||
sleep 2
|
sleep 2
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo "=== Running database migrations ==="
|
||||||
|
docker compose exec -T backend alembic upgrade head
|
||||||
|
|
||||||
echo "=== Waiting for backend healthy ==="
|
echo "=== Waiting for backend healthy ==="
|
||||||
for i in $(seq 1 20); do
|
for i in $(seq 1 20); do
|
||||||
if curl -sf http://localhost:8001/health >/dev/null 2>&1; then
|
if curl -sf http://localhost:8001/health >/dev/null 2>&1; then
|
||||||
|
|||||||
Reference in New Issue
Block a user