Skip to content

Commit 6702214

Browse files
committed
StrictHostKeyChecking=accept-new to fix-try CD Pipeline
1 parent 55e4e51 commit 6702214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ jobs:
2525

2626
- name: Deploy Application
2727
run: |
28-
ssh -o StrictHostKeyChecking=yes -i ~/.ssh/id_rsa ubuntu@${{ secrets.EC2_PUBLIC_IP }} "cd /home/ubuntu/fastapi-application-with-cicd-pipeline && git pull origin main && systemctl restart fastapi.service"
28+
ssh -o StrictHostKeyChecking=accept-new -i ~/.ssh/id_rsa ubuntu@${{ secrets.EC2_PUBLIC_IP }} "cd /home/ubuntu/fastapi-application-with-cicd-pipeline && git pull origin main && systemctl restart fastapi.service"

0 commit comments

Comments
 (0)