From 630de0d7a7fbd0e7de866781f43ae44855053ecc Mon Sep 17 00:00:00 2001 From: Maxime Augier Date: Tue, 11 Jul 2023 12:32:42 +0200 Subject: [PATCH] SSH deploy/test script --- deploy.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..f0edde6 --- /dev/null +++ b/deploy.sh @@ -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 +