weather_exporter/deploy.sh

9 lines
232 B
Bash
Executable File

#!/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