#!/bin/bash dotnet_version='net6.0' set -e echo -e "\n============================ Build ============================\n" dotnet publish \ ./SaliMax.csproj \ -c Release \ -r linux-arm echo -e "\n============================ Deploy ============================\n" rsync -v \ ./bin/Release/$dotnet_version/linux-arm/publish/* \ debian@10.2.1.87:~/salimax echo -e "\n============================ Run ============================\n" ssh -tt \ -o StrictHostKeyChecking=no \ -o UserKnownHostsFile=/dev/null \ -o ConnectTimeout=2 \ debian@10.2.1.87 \ '~/salimax/SaliMax' \ 2>/dev/null