Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ IMAGE="$IMAGE" dc pull web
# flag is only needed for the existence check, since `config --services`
# hides profiled services by default.
if IMAGE="$IMAGE" dc --profile migrate config --services 2>/dev/null | grep -qx migrate; then
IMAGE="$IMAGE" dc run --rm migrate
# -T: never attach stdin — this script itself arrives on stdin (ssh heredoc),
# and an attached migrate container would swallow the remaining lines,
# silently skipping `up` and the health poll (plexus-ms/ci-cd#1).
IMAGE="$IMAGE" dc run -T --rm migrate
fi
IMAGE="$IMAGE" dc up -d web

Expand Down