Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Commit

Permalink
Chore: …and now – copy and restart everything
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenein committed Jun 2, 2022
1 parent d171b0c commit e96bf72
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,14 @@ jobs:
User pi
StrictHostKeyChecking no
- name: Rsync
- name: Rsync and restart
working-directory: ./target/arm-unknown-linux-gnueabihf/release
run: |
rsync -avzP rusty-tractive blueberrypi:/home/pi/bin/rusty-tractive.arm-unknown-linux-gnueabihf
for host in blueberrypi cranberrypi strawberrypi
do
for filename in rusty-tractive rusty-tractive-telegram-bot
do
rsync -avzP $filename $host:/home/pi/bin/$filename.arm-unknown-linux-gnueabihf
ssh $host sudo systemctl restart $filename
done
done

0 comments on commit e96bf72

Please sign in to comment.