.gitea/workflows/dotnet-deploy.yml aktualisiert
Some checks failed
Build & Deploy .NET to 192.168.1.100 / build-and-deploy (push) Failing after 1m7s

This commit is contained in:
2026-01-18 13:29:01 +00:00
parent f9daa978df
commit fd83f9666e

View File

@@ -94,6 +94,9 @@ jobs:
SERVICE_NAME: ${{ secrets.SERVICE_NAME }} SERVICE_NAME: ${{ secrets.SERVICE_NAME }}
run: | run: |
ssh -i ~/.ssh/id_deploy -p "${SSH_PORT:-22}" "${SSH_USER}@${SSH_HOST}" \ ssh -i ~/.ssh/id_deploy -p "${SSH_PORT:-22}" "${SSH_USER}@${SSH_HOST}" \
"sudo -n /usr/bin/systemctl daemon-reload && sudo -n /usr/bin/systemctl restart '${SERVICE_NAME}' && sudo -n /usr/bin/systemctl status --no-pager '${SERVICE_NAME}'" "/usr/bin/sudo -n /usr/bin/systemctl daemon-reload && \
/usr/bin/sudo -n /usr/bin/systemctl restart '${SERVICE_NAME}' && \
/usr/bin/sudo -n /usr/bin/systemctl status --no-pager '${SERVICE_NAME}'"
EOF EOF