ci: debug ssh
Some checks failed
Publish / backend (push) Waiting to run
CI / fmt (push) Successful in 36s
Publish / frontend (push) Failing after 39s
CI / check (push) Successful in 1m31s
CI / clippy (push) Successful in 1m36s

This commit is contained in:
2026-05-06 17:35:30 +03:00
parent 5e5908804a
commit 99e337d387

View File

@@ -40,16 +40,16 @@ jobs:
- name: Build release binary
run: cargo build --release -p ericrfb-proxy
- name: Set up SSH
- name: SSH init
run: |
mkdir -p ~/.ssh
echo "${{ secrets.PUBLISH_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -H ${{ vars.WS_HOST }} >> ~/.ssh/known_hosts 2>/dev/null
ssh -o StrictHostKeyChecking=accept-new gitea_ci@${{ vars.WS_HOST }} exit
- name: Stop service
run: |
ssh gitea_ci@${{ vars.WS_HOST }} 'sudo /usr/bin/systemctl stop blekin.service' || true
ssh gitea_ci@${{ vars.WS_HOST }} 'if systemctl is-active --quiet blekin.service; then sudo /usr/bin/systemctl stop blekin.service; fi'
- name: Deploy binary
run: |
@@ -61,4 +61,4 @@ jobs:
- name: Start and enable service
run: |
ssh gitea_ci@${{ vars.WS_HOST }} 'sudo /usr/bin/systemctl enable blekin.service && sudo /usr/bin/systemctl start blekin.service'
ssh gitea_ci@${{ vars.WS_HOST }} 'sudo /usr/bin/systemctl start blekin.service && ( systemctl is-enabled --quiet blekin.service || sudo /usr/bin/systemctl enable blekin.service )'