From 359bca55bed6be178a5383767a75687bd6d0f645 Mon Sep 17 00:00:00 2001 From: aengzu <102356873+aengzu@users.noreply.github.com> Date: Tue, 17 Dec 2024 17:00:24 +0900 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d59c5d1..d79dd4c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 @@ -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