Skip to content

Commit d8a9c52

Browse files
committed
#28 feat: EC2에 backend 디렉토리 업로드 과정 추가
1 parent 00404bc commit d8a9c52

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/backend.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ jobs:
5151
echo "Checking SSH connection..."
5252
whoami
5353
54+
- name: Copy backend directory to EC2
55+
uses: appleboy/scp-action@v0.1.3
56+
with:
57+
host: ${{ secrets.EC2_HOST }}
58+
username: ${{ secrets.EC2_USERNAME }}
59+
key: ${{ secrets.EC2_SSH_PRIVATE_KEY }}
60+
port: 22
61+
source: "backend/*,docker-compose.yml"
62+
target: "/home/${{ secrets.EC2_USERNAME }}/backend"
63+
5464
- name: Deploy to EC2 via SSH
5565
uses: appleboy/ssh-action@v0.1.7
5666
with:

0 commit comments

Comments
 (0)