From 441901e44c04cdc221c3e7e79ab29f7f75997732 Mon Sep 17 00:00:00 2001 From: Leons Aleksandrovs <58330666+Skrazzo@users.noreply.github.com> Date: Mon, 14 Jul 2025 15:46:00 +0300 Subject: [PATCH] fix(CD): source bash for ssh key --- .github/workflows/deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2048911..0d38091 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -27,8 +27,9 @@ jobs: - name: Deploy via SSH run: | ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no ${{ secrets.SSH_USER }}@${{ secrets.SSH_SERVER }} << 'EOF' + source ~/.bashrc cd ~/cover-letter # Replace with your project's path on the server - git pull origin main # or your branch + git pull # or your branch sudo docker compose down sudo docker compose up -d --build EOF