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
10 changes: 10 additions & 0 deletions .github/workflows/deploy-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,17 @@ jobs:
DEPLOY_CMD="reset-zkcoins-node"
fi

# ServerAlive* keep the session alive across long-running
# `docker compose recreate` steps where the remote command
# produces no stdout for >60s. Without keepalive the
# cloudflared tunnel (and the OpenSSH client) drop the
# session and exit 255 even though the host-side deploy
# script keeps running — observed on the PR #111 merge
# (run 26419696840). 30s interval × 8 retries = 4 min of
# network silence tolerated before the session is killed.
ssh -i ~/.ssh/deploy_key \
-o ServerAliveInterval=30 \
-o ServerAliveCountMax=8 \
-o ProxyCommand="cloudflared access ssh --hostname ${{ secrets.DEPLOY_DEV_HOST }}" \
${{ secrets.DEPLOY_DEV_USER }}@${{ secrets.DEPLOY_DEV_HOST }} \
"$DEPLOY_CMD"
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/deploy-prd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,15 @@ jobs:
echo "${{ secrets.DEPLOY_PRD_SSH_KEY }}" > ~/.ssh/deploy_key
chmod 600 ~/.ssh/deploy_key
echo "${{ secrets.DEPLOY_PRD_SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
# ServerAlive* keep the session alive across long-running
# `docker compose recreate` steps where the remote command
# produces no stdout for >60s. Mirrors deploy-dev.yaml; see
# the comment there for the failure mode that motivated this
# (PR #111 merge run 26419696840 — SSH dropped mid-recreate,
# exit 255, container actually came up server-side).
ssh -i ~/.ssh/deploy_key \
-o ServerAliveInterval=30 \
-o ServerAliveCountMax=8 \
-o ProxyCommand="cloudflared access ssh --hostname ${{ secrets.DEPLOY_PRD_HOST }}" \
${{ secrets.DEPLOY_PRD_USER }}@${{ secrets.DEPLOY_PRD_HOST }} \
"zkcoins-node"
Expand Down
Loading