Skip to content

Commit b5f7459

Browse files
authored
Update main.yml
1 parent 9ffc7c5 commit b5f7459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
2626
- name: Deploy to EC2
2727
run: |
28-
ssh -i ~/.ssh/ec2.pem ec2-user@YOUR_EC2_PUBLIC_IP << 'EOF'
28+
ssh -i ~/.ssh/ec2.pem -T ec2-user@${{ secrets.EC2_ADDRESS }} << 'EOF'
2929
cd ~/moving-be
3030
git pull origin main # GitHub에서 최신 변경 사항을 pull
3131
npm install # 필요에 따라 의존성 설치

0 commit comments

Comments
 (0)