-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace scp action with script dev.yml
- Loading branch information
1 parent
bdb379e
commit 8102144
Showing
1 changed file
with
2 additions
and
3 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 |
---|---|---|
|
@@ -22,14 +22,13 @@ jobs: | |
docker save backend_dev | gzip > backend_dev.tar.gz | ||
- name: Upload to server | ||
uses: appleboy/scp-action@master | ||
uses: appleboy/ssh-action@v1.0.3 | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
password: ${{ secrets.PASSWORD }} | ||
port: ${{ secrets.PORT }} | ||
source: "backend_dev.tar.gz" | ||
target: "/opt/backend-tar/" | ||
script: scp backend_dev.tar.gz $SERVER_USERNAME@$SERVER_HOST:/opt/backend-tar/ | ||
|
||
- name: Load Docker image on server and start | ||
uses: appleboy/[email protected] | ||
|