ssh action for deployment added after qualitygate
Sonarqube Scanner / Build and analyze (push) Failing after 27s
Sonarqube Scanner / Build and analyze (push) Failing after 27s
This commit is contained in:
@@ -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."
|
||||||
Reference in New Issue
Block a user