Skip to content

Commit

Permalink
fix: private key in scp and ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
ManasC478 committed Oct 12, 2024
1 parent 65e1b74 commit aa0b0d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ jobs:
- name: SCP core files
run: |
scp -r docker-compose.yml nginx.conf db-scripts/ .env ${{ vars.SERVER_USER }}@${{ vars.SERVER_IP }}:~/
scp -i ~/.ssh/id_rsa -r docker-compose.yml nginx.conf db-scripts/ .env ${{ vars.SERVER_USER }}@${{ vars.SERVER_IP }}:~/
- name: SSH into server
run: |
ssh -o StrictHostKeyChecking=no ${{ vars.SERVER_USER }}@${{ vars.SERVER_IP }}
ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no ${{ vars.SERVER_USER }}@${{ vars.SERVER_IP }}
docker compose down
docker compose up --build -d

0 comments on commit aa0b0d3

Please sign in to comment.