deploy script for IO project to deploy and test
This commit is contained in:
parent
1e12bc708e
commit
11e85f304a
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
dotnet_version='net6.0'
|
||||
salimax_ip="$1"
|
||||
is_release="$2" # Pass --release if this is a real release
|
||||
username='inesco'
|
||||
root_password='Sodistore0918425'
|
||||
|
||||
DOTNET="/snap/dotnet-sdk_60/current/dotnet"
|
||||
|
||||
|
||||
set -e
|
||||
|
||||
echo -e "\n============================ Build ============================\n"
|
||||
|
||||
"$DOTNET" publish \
|
||||
./GpioTestingProject.csproj \
|
||||
-p:PublishTrimmed=false \
|
||||
-c Release \
|
||||
-r linux-arm64
|
||||
|
||||
echo -e "\n============================ Deploy ============================\n"
|
||||
|
||||
rsync -v \
|
||||
--exclude '*.pdb' \
|
||||
./bin/Release/$dotnet_version/linux-arm64/publish/* \
|
||||
$username@"$salimax_ip":~/
|
||||
|
||||
Loading…
Reference in New Issue