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