2023-07-13 07:42:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
dotnet_version='net6.0'
|
2023-07-24 08:54:50 +00:00
|
|
|
salimax_ip="$1"
|
2023-07-13 07:42:50 +00:00
|
|
|
username='ie-entwicklung'
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
echo -e "\n============================ Build ============================\n"
|
|
|
|
|
|
|
|
dotnet publish \
|
|
|
|
./SaliMax.csproj \
|
|
|
|
-p:PublishTrimmed=false \
|
|
|
|
-c Release \
|
|
|
|
-r linux-x64
|
|
|
|
|
|
|
|
echo -e "\n============================ Deploy ============================\n"
|
|
|
|
|
|
|
|
rsync -v \
|
2023-08-23 14:11:50 +00:00
|
|
|
--exclude '*.pdb' \
|
2023-07-13 07:42:50 +00:00
|
|
|
./bin/Release/$dotnet_version/linux-x64/publish/* \
|
2023-08-18 13:57:00 +00:00
|
|
|
$username@"$salimax_ip":~/salimax
|
2023-07-13 07:42:50 +00:00
|
|
|
|