Prevent production release stdin truncation

This commit is contained in:
SimpleTest 2026-07-28 05:05:06 +03:00
parent 3d6f9c5004
commit 042cabe2a8
2 changed files with 4 additions and 3 deletions

View File

@ -91,7 +91,7 @@ case "$*" in
printf 'compose:%s\n' "$*" >>"$MOCK_COMMAND_LOG"
exit 0
;;
'run --rm --no-deps migrate')
'run --rm --no-deps --interactive=false migrate')
printf 'compose:%s\n' "$*" >>"$MOCK_COMMAND_LOG"
exit 0
;;
@ -228,7 +228,7 @@ grep -Fx "CADDY_IMAGE=who-need-help:caddy-production-${current_commit:0:12}" \
"$fixture/.env" >/dev/null
grep -F 'compose:build migrate' "$fixture/mock-commands.log" >/dev/null
grep -F 'compose:stop app' "$fixture/mock-commands.log" >/dev/null
grep -F 'compose:run --rm --no-deps migrate' \
grep -F 'compose:run --rm --no-deps --interactive=false migrate' \
"$fixture/mock-commands.log" >/dev/null
grep -F 'compose:up -d --no-deps --no-build --force-recreate --wait app' \
"$fixture/mock-commands.log" >/dev/null

View File

@ -352,7 +352,8 @@ if [[ "$migration_policy" == "forward_only" ]]; then
fi
migration_started=true
"$root/scripts/compose.sh" "$env_file" run --rm --no-deps migrate
"$root/scripts/compose.sh" "$env_file" \
run --rm --no-deps --interactive=false migrate
"$root/scripts/check-database.sh" "$env_file"
"$root/scripts/compose.sh" "$env_file" \
up -d --no-deps --no-build --force-recreate --wait "${runtime_services[@]}"