From 67a93d2b12f774b7a088f9bc94236aa4195a719f Mon Sep 17 00:00:00 2001 From: ONEPANTSU Date: Tue, 5 Mar 2024 16:13:45 +0300 Subject: [PATCH] fix: deploy.yml --- .github/workflows/deploy.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8385bc1..1c3b601 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -23,13 +23,7 @@ jobs: run: | docker-compose -f docker-compose.yml build docker-compose -f docker-compose.yml push - - name: SSH into server and deploy - uses: appleboy/ssh-action@v2 - with: - host: ${{ secrets.SERVER_HOST }} - port: ${{ secrets.SERVER_PORT }} - username: ${{ secrets.USERNAME }} - password: ${{ secrets.PASSWORD }} - script_stop: true - script: bash scripts/deploy.sh \ No newline at end of file + run: | + cat scripts/deploy.sh | + sshpass -p ${{ secrets.PASSWORD }} ssh -p ${{ secrets.SERVER_PORT }} ${{ secrets.USERNAME }}@${{ secrets.SERVER_HOST }} 'bash -s' \ No newline at end of file