restart service on deploymenet
Build and Deploy Java Project / build-and-deploy (push) Failing after 49s
Build and Deploy Java Project / build-and-deploy (push) Failing after 49s
This commit is contained in:
@@ -42,8 +42,8 @@ jobs:
|
|||||||
- name: Restart Service on Server
|
- name: Restart Service on Server
|
||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.SERVER_IP }}
|
host: ${{ secrets.SERVER_IP }}
|
||||||
username: ${{ secrets.SERVER_USERNAME }}
|
username: ${{ secrets.SERVER_USERNAME }}
|
||||||
password: ${{ secrets.SERVER_PASSWORD }}
|
password: ${{ secrets.SERVER_PASSWORD }}
|
||||||
script: |
|
script: |
|
||||||
sudo systemctl restart notifier
|
echo "${{ secrets.SERVER_PASSWORD }}" | sudo -S systemctl restart notifier
|
||||||
Reference in New Issue
Block a user