fix(CD): add ssh to git pull command
This commit is contained in:
7
.github/workflows/deploy.yml
vendored
7
.github/workflows/deploy.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user