Make deployment part of the repo

This commit is contained in:
Xyon 2023-08-30 16:57:38 +01:00
parent a7183731c7
commit bfc045e4f5
Signed by: xyon
GPG Key ID: DD18155D6B18078D
1 changed files with 7 additions and 0 deletions

7
cicd/deploy.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
ssh badgey@badgey sudo /usr/bin/systemctl stop badgey
rsync -avP target/debug/badgey badgey@badgey:/srv/badgey/
rsync -avP config badgey@badgey:/srv/badgey/
rsync -avP txt badgey@badgey:/srv/badgey/
ssh badgey@badgey sudo /usr/bin/systemctl start badgey