-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop service before uploading, and overwrite with new binary
- Loading branch information
1 parent
27c7d50
commit 5cab814
Showing
1 changed file
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,17 @@ jobs: | |
|
||
- run: ls -l | ||
|
||
- name: copy file via ssh password | ||
- name: Stop service | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.SSH_HOST }} | ||
username: ${{ secrets.SSH_USERNAME }} | ||
password: ${{ secrets.SSH_PASSWORD }} | ||
port: ${{ secrets.SSH_PORT }} | ||
script: sudo /usr/bin/systemctl stop qrsync_server | ||
|
||
|
||
- name: Upload new binary | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.SSH_HOST }} | ||
|
@@ -45,8 +55,9 @@ jobs: | |
port: ${{ secrets.SSH_PORT }} | ||
source: "qrsync-server" | ||
target: /var/www/qrsync_server | ||
overwrite: true | ||
|
||
- name: executing remote ssh commands using password | ||
- name: Restart service | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.SSH_HOST }} | ||
|