Skip to content

Commit

Permalink
add identify file to ssh command
Browse files Browse the repository at this point in the history
  • Loading branch information
cankurttekin committed Nov 19, 2024
1 parent b648ef9 commit 9cd379d
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 @@ -40,9 +40,9 @@ jobs:
EC2_HOST: ${{ secrets.EC2_HOST }}
run: |
echo "Testing SSH Connection..."
ssh -o StrictHostKeyChecking=no $EC2_USER@$EC2_HOST "echo 'Connected'"
ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no $EC2_USER@$EC2_HOST "echo 'Connected'"
echo "Copying files to EC2..."
scp -o StrictHostKeyChecking=no -r backend/docker-compose.yml $EC2_USER@$EC2_HOST:~/job-application-tracker/
scp -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no -r backend/docker-compose.yml $EC2_USER@$EC2_HOST:~/job-application-tracker/
# Create .env file on EC2
- name: Configure Environment Variables
Expand Down

0 comments on commit 9cd379d

Please sign in to comment.