fix(deploy): preserve rollback diagnostics
CI / Rust Checks (push) Successful in 12m38s
CI / UI Checks (push) Successful in 6s
CI / Community Image Smoke (push) Successful in 1m12s
CI / Frontend E2E (push) Successful in 4m55s
CI / Deploy (push) Failing after 31s

This commit is contained in:
2026-09-01 00:13:27 +03:00
parent 5818255cf5
commit dd5dbba1f6
2 changed files with 16 additions and 14 deletions
+5 -4
View File
@@ -28,15 +28,16 @@ compose_profiles=""
if [ "$cache_backend" = "valkey" ] || [ "$cache_backend" = "redis" ]; then
compose_profiles="--profile cache"
fi
postgres_scale=""
if [ "$(env_value POSTGRES_HOST postgres)" != "postgres" ]; then
postgres_scale="--scale postgres=0"
fi
compose() {
# shellcheck disable=SC2086
docker compose $compose_profiles "$@"
}
compose_up() {
postgres_scale=""
if [ "$(env_value POSTGRES_HOST postgres)" != "postgres" ] \
&& compose config --services | grep -Fxq postgres; then
postgres_scale="--scale postgres=0"
fi
# shellcheck disable=SC2086
compose up -d --remove-orphans $postgres_scale
}