@@ -36,7 +36,14 @@ jobs:
|
||||
|
||||
ssh-keyscan -p "$DEPLOY_PORT" "$DEPLOY_HOST" >> ~/.ssh/known_hosts
|
||||
|
||||
ssh -i ~/.ssh/deploy_key -p "$DEPLOY_PORT" "$DEPLOY_USER@$DEPLOY_HOST" << EOF
|
||||
ssh \
|
||||
-o BatchMode=yes \
|
||||
-o ConnectTimeout=20 \
|
||||
-o ServerAliveInterval=15 \
|
||||
-o ServerAliveCountMax=2 \
|
||||
-i ~/.ssh/deploy_key \
|
||||
-p "$DEPLOY_PORT" \
|
||||
"$DEPLOY_USER@$DEPLOY_HOST" << EOF
|
||||
set -eu
|
||||
|
||||
if [ ! -d "$DEPLOY_PATH/.git" ]; then
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ COPY ./*.csproj ./
|
||||
RUN dotnet restore
|
||||
|
||||
COPY . ./
|
||||
RUN dotnet publish -c Release -o /app/publish --no-restore
|
||||
RUN dotnet publish LowLevelGuyCom.csproj -c Release -o /app/publish --no-restore
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
|
||||
|
||||
|
||||
Reference in New Issue
Block a user