diff --git a/Cargo.lock b/Cargo.lock index c635922..57b0eb4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -921,7 +921,7 @@ dependencies = [ ] [[package]] -name = "hal-discord" +name = "hal" version = "0.1.0" dependencies = [ "built", diff --git a/cicd/deploy.sh b/cicd/deploy.sh new file mode 100644 index 0000000..c1c8fe9 --- /dev/null +++ b/cicd/deploy.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +bot=$(echo "$1" | tr '[:upper:]' '[:lower:]') + +echo "Running deploy for bot ${bot}" + +ssh badgey@hal-9000 sudo /usr/bin/systemctl stop $bot +rsync -avP badgey badgey@hal-9000:/srv/$bot/$bot +rsync -avP config badgey@hal-9000:/srv/$bot/ +rsync -avP txt badgey@hal-9000:/srv/$bot/ +ssh badgey@hal-9000 chmod a+x /srv/$bot/$bot +ssh badgey@hal-9000 sudo /usr/bin/systemctl start $bot \ No newline at end of file