From 6fc7decd18dbe54fb0f285107a5708a437539a4b Mon Sep 17 00:00:00 2001 From: Leons Aleksandrovs <58330666+Skrazzo@users.noreply.github.com> Date: Mon, 14 Jul 2025 16:03:55 +0300 Subject: [PATCH] fix(CD): add ssh to git pull command --- .github/workflows/deploy.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 47ee9b2..5eb2f5a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,10 +10,6 @@ jobs: runs-on: ubuntu-latest # The runner environment for this job steps: - - name: Setup ssh key - uses: webfactory/ssh-agent@v0.9.0 - with: - ssh-private-key: ${{ secrets.GIT_SSH_PRIVATE_KEY }} - name: Deploy via ssh uses: appleboy/ssh-action@v1.0.3 with: @@ -21,8 +17,7 @@ jobs: username: ${{ secrets.SSH_USER }} key: ${{ secrets.SSH_PRIVATE_KEY }} script: | - source ~/.bashrc cd ~/cover-letter - git pull + GIT_SSH_COMMAND='ssh -i ~/.ssh/github' git pull sudo docker compose down sudo docker compose up -d --build