SSH deploy/test script

This commit is contained in:
Maxime Augier 2023-07-11 12:32:42 +02:00
parent f663de1e56
commit 630de0d7a7

8
deploy.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
SSH_TARGET=user@machine
cargo build --release --target "aarch64-unknown-linux-musl" || exit
scp target/aarch64-unknown-linux-musl/release/weather_exporter "${SSH_TARGET}:" || exit
ssh "${SSH_TARGET}" ./weather_exporter