fix: CI no longer auto-restarts relay; update only via CLI
This commit is contained in:
parent
bd9b92c861
commit
e15834c179
1 changed files with 1 additions and 8 deletions
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
|
@ -120,17 +120,10 @@ jobs:
|
||||||
echo "$VPS_SSH_KEY" > ~/.ssh/deploy_key
|
echo "$VPS_SSH_KEY" > ~/.ssh/deploy_key
|
||||||
chmod 600 ~/.ssh/deploy_key
|
chmod 600 ~/.ssh/deploy_key
|
||||||
ssh-keyscan -H 46.225.185.232 >> ~/.ssh/known_hosts
|
ssh-keyscan -H 46.225.185.232 >> ~/.ssh/known_hosts
|
||||||
scp -i ~/.ssh/deploy_key \
|
# Only publish to download URL — relay updates itself when triggered by CLI
|
||||||
target/x86_64-unknown-linux-gnu/release/helios-remote-relay \
|
|
||||||
root@46.225.185.232:/opt/helios-remote/target/release/helios-remote-relay-new
|
|
||||||
# Also publish relay binary to download URL for self-update
|
|
||||||
scp -i ~/.ssh/deploy_key \
|
scp -i ~/.ssh/deploy_key \
|
||||||
target/x86_64-unknown-linux-gnu/release/helios-remote-relay \
|
target/x86_64-unknown-linux-gnu/release/helios-remote-relay \
|
||||||
root@46.225.185.232:/var/www/helios-remote/helios-remote-relay-linux
|
root@46.225.185.232:/var/www/helios-remote/helios-remote-relay-linux
|
||||||
ssh -i ~/.ssh/deploy_key root@46.225.185.232 \
|
|
||||||
"mv /opt/helios-remote/target/release/helios-remote-relay-new \
|
|
||||||
/opt/helios-remote/target/release/helios-remote-relay && \
|
|
||||||
systemctl restart helios-remote"
|
|
||||||
|
|
||||||
build-cli:
|
build-cli:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue