Skip to content

Commit

Permalink
Fix deploy key path
Browse files Browse the repository at this point in the history
  • Loading branch information
hoang-rio committed Dec 25, 2023
1 parent 78f6fea commit 7c5d7c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
- name: Deploy to Main Server
run: |
rsync -have "ssh -i $SSH_DEPLOY_KEY" --exclude=".keys" . $SSH_DEPLOY_USER@$SSH_MAIN_HOST:$DEPLOY_PATH
rsync -have "ssh -i .keys/deploy_key.pem" --exclude=".keys" . $SSH_DEPLOY_USER@$SSH_MAIN_HOST:$DEPLOY_PATH
- name: Deploy to backup Server
run: |
rsync -have "ssh -i $SSH_DEPLOY_KEY" --exclude=".keys" . $SSH_DEPLOY_USER@$SSH_BACKUP_HOST:$DEPLOY_PATH
rsync -have "ssh -i .keys/deploy_key.pem" --exclude=".keys" . $SSH_DEPLOY_USER@$SSH_BACKUP_HOST:$DEPLOY_PATH
- name: Clean deply key file
run: |
Expand Down

0 comments on commit 7c5d7c6

Please sign in to comment.