Skip to content

Commit

Permalink
Merge pull request #544 from hngprojects/Rob-in-son-workflows
Browse files Browse the repository at this point in the history
Replace scp action with script dev.yml
  • Loading branch information
Lanky-23 authored Aug 9, 2024
2 parents b17549b + 8102144 commit 4b161cd
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 4b161cd

Please sign in to comment.