From 8102144be369ba36d4544a252a3b96f8f8bfaf58 Mon Sep 17 00:00:00 2001 From: Robinson Uchechukwu Date: Fri, 9 Aug 2024 01:19:04 +0100 Subject: [PATCH] Replace scp action with script dev.yml --- .github/workflows/dev.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index de5a3028..455cf990 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -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/ssh-action@v1.0.3