Files
agent-bounty-protocol/deploy_all.sh
OG T 745ff300b5
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 7s
feat: harden A2A funnel and paid proposal intake
2026-06-11 11:28:08 +08:00

24 lines
777 B
Bash
Executable File

#!/usr/bin/expect -f
set timeout -1
if {![info exists env(SUDO_PASSWORD)] || $env(SUDO_PASSWORD) eq ""} {
puts "Missing SUDO_PASSWORD env variable."
exit 1
}
set sudo_password $env(SUDO_PASSWORD)
if {![info exists env(CONFIRM_REMOTE_OPS)] || $env(CONFIRM_REMOTE_OPS) ne "YES"} {
puts "Refusing destructive remote deploy. Set CONFIRM_REMOTE_OPS=YES to continue."
exit 1
}
set jump_host "wooo@192.168.0.110"
set target_host "ollama@192.168.0.188"
set repo_dir "/home/ollama/agent-bounty-protocol"
spawn ssh -J $jump_host $target_host "cd $repo_dir && git reset --hard HEAD && git pull origin main && docker compose pull && docker compose up -d --build db web agent && docker compose ps"
expect {
"*assword:*" {
send "$sudo_password\r"
exp_continue
}
eof
}