Skip to content

Commit ba69026

Browse files
committed
refactor: 프론트, 백엔드 CD 병렬 처리
1 parent 56292dc commit ba69026

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- feature-be-#110
77

88
jobs:
9-
create-directory:
9+
frontend-CD:
1010
runs-on: ubuntu-latest
1111

1212
steps:
@@ -37,19 +37,15 @@ jobs:
3737
aws configure set region ap-northeast-2
3838
aws --endpoint-url=https://kr.object.ncloudstorage.com s3 cp ./frontend/dist s3://octodocs/ --recursive --debug
3939
40-
# 패키지 설치 및 Nest.js 빌드
41-
- name: Install dependencies and build
42-
run: |
43-
cd backend
44-
npm install
45-
npm run build
4640
47-
# 배포용 쉘 스크립트 파일 전송
48-
- name: Copy deploy.sh to remote server
49-
uses: appleboy/[email protected]
50-
with:
51-
host: ${{ secrets.REMOTE_DEV_IP }}
52-
username: ${{ secrets.REMOTE_USER }}
53-
key: ${{ secrets.REMOTE_PRIVATE_KEY }}
54-
source: ./deploy.sh
55-
target: /home/root/deploy.sh
41+
backend-CD:
42+
43+
# 배포용 쉘 스크립트 파일 전송
44+
- name: Copy deploy.sh to remote server
45+
uses: appleboy/[email protected]
46+
with:
47+
host: ${{ secrets.REMOTE_DEV_IP }}
48+
username: ${{ secrets.REMOTE_USER }}
49+
key: ${{ secrets.REMOTE_PRIVATE_KEY }}
50+
source: ./deploy.sh
51+
target: /home/root/deploy.sh

0 commit comments

Comments
 (0)