Skip to content

Commit

Permalink
Replace scp action with script dev.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob-in-son authored Aug 9, 2024
1 parent bdb379e commit 8102144
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 8102144

Please sign in to comment.