File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -122,13 +122,17 @@ jobs:
122122 SAMIZDAT_SHORT_ID : ${{ steps.creds.outputs.samizdat_short_id }}
123123 WASM_HASH : ${{ steps.creds.outputs.wasm_hash }}
124124 run : |
125- SSH_OPTS="-o StrictHostKeyChecking=no -i e2e_key"
125+ SSH_OPTS="-o StrictHostKeyChecking=no -o ServerAliveInterval=30 -i e2e_key"
126+
127+ # Compress binary before upload to avoid SCP timeout on small droplets
128+ gzip -1 -c lantern-box > lantern-box.gz
126129
127130 # Upload files
128- scp $SSH_OPTS lantern-box cert.pem key.pem plain.wasm root@"$DROPLET_IP":/root/
131+ scp $SSH_OPTS lantern-box.gz cert.pem key.pem plain.wasm root@"$DROPLET_IP":/root/
129132
130- # Make binary executable
131- ssh $SSH_OPTS root@"$DROPLET_IP" chmod +x /root/lantern-box
133+ # Decompress and make binary executable
134+ ssh $SSH_OPTS root@"$DROPLET_IP" \
135+ "gzip -d /root/lantern-box.gz && chmod +x /root/lantern-box"
132136
133137 # Start Python HTTP server to serve plain.wasm (for WATER)
134138 ssh $SSH_OPTS root@"$DROPLET_IP" \
You can’t perform that action at this time.
0 commit comments