Skip to content

Commit

Permalink
Updated CD workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
im1ex committed Jul 2, 2024
1 parent 9280661 commit 50c5aba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
steps:
- name: Configure SSH
env:
SSH_HOST: ${{ secrets.DEPLOYMENT_HOST }}
SSH_USER: ${{ secrets.DEPLOYMENT_USER }}
SSH_HOST: ${{ vars.DEPLOYMENT_HOST }}
SSH_USER: ${{ vars.DEPLOYMENT_USER }}
SSH_KEY: ${{ secrets.DEPLOYMENT_KEY }}
run: |
mkdir -p ~/.ssh/
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Stop service, Copy node_modules and dist folders to target host, Start service
env:
SSH_PATH: ${{ secrets.DEPLOYMENT_BACKEND_PATH }}
SSH_PATH: ${{ vars.DEPLOYMENT_BACKEND_PATH }}
run: |
ssh staging "$SSH_PATH/stop-service.sh"
rsync -azh ./node_modules/ staging:$SSH_PATH/node_modules/
Expand Down

0 comments on commit 50c5aba

Please sign in to comment.