fix(CD): add ssh to git pull command

This commit is contained in:
Leons Aleksandrovs
2025-07-14 16:03:55 +03:00
parent c1402cb6f4
commit 6fc7decd18

View File

@@ -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