Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aengzu authored Dec 17, 2024
1 parent 5f789ba commit 359bca5
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 @@ -25,7 +25,7 @@ jobs:
# 3. Docker 이미지 빌드
- name: Build Docker Image
run: |
docker build -t backend_server .
docker build -t backend_server ./backend
# 4. 서버에 코드 전송
- name: Deploy to EC2
Expand All @@ -35,7 +35,7 @@ jobs:
username: ubuntu
key: ${{ secrets.EC2_SSH_KEY }}
source: "./backend/*" # 중첩되지 않게 수정
target: "/home/ubuntu/backend"
target: "/home/ubuntu"

# 5. 서버에서 Docker Compose 실행
- name: SSH into EC2 and restart Docker Compose
Expand Down

0 comments on commit 359bca5

Please sign in to comment.