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:
@@ -68,4 +68,22 @@ jobs:
|
||||
timeout-minutes: 5
|
||||
env:
|
||||
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