From 0f197a36668282645b395e30aa73924265ae727c Mon Sep 17 00:00:00 2001 From: Samil Date: Mon, 29 Jan 2024 15:15:01 +0545 Subject: [PATCH] next --- .github/workflows/run-server.yml | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/.github/workflows/run-server.yml b/.github/workflows/run-server.yml index 5c6deaf..f78fc97 100644 --- a/.github/workflows/run-server.yml +++ b/.github/workflows/run-server.yml @@ -18,21 +18,7 @@ jobs: with: key: ${{ secrets.SSH_PRIVATE_KEY }} known_hosts: 'test' - - - name: executing remote ssh commands using ssh key - uses: ./ - with: - host: ${{ secrets.REMOTE_HOST }} - username: ${{ secrets.REMOTE_USERNAME }} - key: ${{ secrets.SSH_PRIVATE_KEY }} - port: ${{ secrets.SSH_PORT }} - script: whoami - - - name: Install SSH key - uses: webfactory/ssh-agent@v0.5.3 - with: - ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - + - name: Update Git code on the server run: | ssh -i ${{ secrets.SSH_PRIVATE_KEY }} ${{ secrets.REMOTE_USERNAME }}@${{ secrets.REMOTE_HOST }} "cd /home/ubuntu/devops_class/all_in_docker && git pull"