ssh action for deployment added after qualitygate
Sonarqube Scanner / Build and analyze (push) Failing after 27s

This commit is contained in:
2026-09-27 21:00:09 +02:00
parent dfa139c543
commit a3e7ca16ba
+18
View File
@@ -69,3 +69,21 @@ jobs:
env: env:
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Deploy Wegwichtel
uses: appleboy/ssh-action@v1
with:
host: ${{ vars.SSH_HOST }}
username: ${{ vars.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
script: |-
set -e
cd "$HOME/Wegwichtel"
git pull --ff-only
systemctl --user restart wegwichtel.service
systemctl --user is-active --quiet wegwichtel.service
echo "Wegwichtel erfolgreich aktualisiert und neu gestartet."