Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion .github/actions/run-coolify-oneshot/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@ runs:
run: |
# The script is piped over stdin, so the remote shell's own stdin is the script itself: every
# command that could read stdin gets </dev/null.
# ssh joins its arguments with spaces and the remote shell re-splits them, so each one is shell-quoted.
remote_args=$(printf ' %q' "$APP_NAME" "$COOLIFY_ENVIRONMENT" "$IMAGE" "$TIMEOUT_MINUTES" "$RUN_ID" "$COMMAND")
ssh -o StrictHostKeyChecking=accept-new -o ServerAliveInterval=30 -o ServerAliveCountMax=10 \
"${SERVER_DEPLOY_USERNAME}@${SERVER_HOST}" \
bash -s -- "$APP_NAME" "$COOLIFY_ENVIRONMENT" "$IMAGE" "$TIMEOUT_MINUTES" "$RUN_ID" "$COMMAND" <<'REMOTE'
"bash -s --${remote_args}" <<'REMOTE'
set -euo pipefail
app=$1 env_name=$2 image=$3 timeout_minutes=$4 run_id=$5 command=$6
name_prefix="${app}-oneshot-${env_name}"
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ All contributors (including maintainers) should update `CHANGELOG.md` when creat

## [Unreleased]

### Fixed

- **`run-coolify-oneshot` dropped the command's arguments**: the remote shell re-split the command, so `python3 manage.py migrate --no-input` ran as bare `python3` and exited 0 without migrating; every argument is now shell-quoted before it crosses ssh

## [4.5.0] - 2026-10-27


Expand Down
Loading