Fix migration check in deploy script to use reliable exit code (#267)

`docker compose wait migrate | grep -qx "0"` was unreliable because
`docker compose wait` output format may not match the literal string "0".

Replace with `docker compose up --no-deps migrate` (foreground, no -d),
which exits with the container's actual exit code — no grep needed.

https://claude.ai/code/session_01WRe4qZuV2NQqDYurpDodF4

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Chris Parsons 2026-04-06 00:44:04 -04:00 committed by GitHub
parent 0f97ab258f
commit a395f10064
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -149,8 +149,7 @@ jobs:
docker login $CONTAINER_REGISTRY -u $REGISTRY_USERNAME -p $REGISTRY_PASSWORD
cd brackt
docker compose pull
docker compose up -d migrate
if ! docker compose wait migrate | grep -qx "0"; then
if ! docker compose up --no-deps migrate; then
echo "Migration failed:"
docker compose logs migrate
exit 1